chore: reuse annotations #486
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
| # SPDX-FileCopyrightText: 2024 Linnea Gräf <[email protected]> | |
| # | |
| # SPDX-License-Identifier: CC0-1.0 | |
| on: | |
| - push | |
| name: Web | |
| jobs: | |
| build-website: | |
| runs-on: ubuntu-latest | |
| name: Vitepress Build | |
| steps: | |
| - uses: actions/checkout@v5 | |
| name: Checkout Code | |
| - name: Setup node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 23 | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: 'web/package.json' | |
| - name: Build Vitepress | |
| run: | | |
| cd web | |
| pnpm install --frozen-lockfile | |
| pnpm build | |
| - name: Upload web artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: web/.vitepress/dist/ | |
| deploy-website: | |
| name: Deploy Website | |
| runs-on: ubuntu-latest | |
| needs: build-website | |
| if: ${{ 'push' == github.event_name && github.ref_name == github.event.repository.default_branch && '637563904' == github.repository_id }} | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/download-artifact@v5 | |
| name: Download web artifact | |
| - name: Deploy github pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |