FancyWeb GH Pages deploy #6
This file contains hidden or 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
| name: gh-pages-deploy | |
| run-name: FancyWeb GH Pages deploy | |
| on: | |
| push: | |
| branches: | |
| - 'deploy' | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.18' | |
| - name: Enable and set up Yarn | |
| run: | | |
| corepack enable | |
| yarn set version 4.9.2 | |
| - name: Install packages and build | |
| run: | | |
| yarn install --check-cache | |
| yarn run build-main | |
| - name: Get production artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: production-build | |
| path: dist | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: production-build | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: '.' | |
| - name: Deploy to GH Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |