GitHub Pages #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initially Modified at 5:55 AM on Fri 17 Nov 2023 | |
# Last Modified at 6:06 AM on Fri 17 Nov 2023 | |
name: GitHub Pages | |
run-name: ${{ github.actor }} ran this workflow | |
on: workflow_dispatch | |
defaults: # --amend at 6:11 AM on Fri 17 Nov 2023 | |
run: | |
working-directory: frontend | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
- run: mkdir -v ../_site | |
- run: npm ci | |
- run: npm run build | |
- run: mv -v dist/* ../_site | |
- uses: actions/upload-pages-artifact@v2 | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/deploy-pages@v2 | |
permissions: | |
id-token: write | |
pages: write |