Build and Deploy #454
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: Build and Deploy | |
| on: | |
| workflow_run: | |
| workflows: [ "Update Indexes" ] | |
| types: | |
| - completed | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| concurrency: | |
| group: 'pages' | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout π | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| show-progress: false | |
| - uses: pnpm/action-setup@v4 | |
| name: Configure PNPM | |
| - name: Setup node env π | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| check-latest: true | |
| cache: 'pnpm' | |
| - name: Install dependencies π¨π»βπ» | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint check β | |
| run: pnpm lint | |
| - name: Deploy π | |
| run: pnpm generate | |
| - name: Publish π» | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: ./dist | |
| deploy: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |