Skip to content

Merge pull request #122 from github/dependabot/npm_and_yarn/follow-re… #19

Merge pull request #122 from github/dependabot/npm_and_yarn/follow-re…

Merge pull request #122 from github/dependabot/npm_and_yarn/follow-re… #19

Workflow file for this run

name: Publish Pages site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
- run: npm run buildSite
- name: Fix permissions
run: |
chmod -c -R +rX "pages/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- uses: actions/upload-pages-artifact@v2
with:
path: pages
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v2