1 # Simple workflow for deploying static content to GitHub Pages
2 name: Deploy static content to Pages
5 # Runs on pushes targeting the default branch
9 # Allows you to run this workflow manually from the Actions tab
12 # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18 # Allow one concurrent deployment
21 cancel-in-progress: true
24 # Single deploy job since we're just deploying
28 url: ${{ steps.deployment.outputs.page_url }}
29 runs-on: ubuntu-latest
32 uses: actions/checkout@v3
34 uses: actions/configure-pages@v2
36 uses: actions/setup-node@v3
39 - run: NODE_ENV=production npm i
40 - run: ENVIRONMENT=production npm run build
41 - name: Upload artifact
42 uses: actions/upload-pages-artifact@v1
44 # Upload entire repository
46 - name: Deploy to GitHub Pages
48 uses: actions/deploy-pages@v1