chore(deps-dev): bump @biomejs/biome from 2.3.14 to 2.5.0 (#327) #150
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
| # Publish static data to GitHub Pages. | |
| # In repository Settings > Pages, set Source to "GitHub Actions". | |
| name: Deploy GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/pages-deploy.yml' | |
| - 'data/**' | |
| - 'fixtures/data/**' | |
| - 'package*.json' | |
| - 'packages/**' | |
| - 'scripts/build-pages-artifact.mjs' | |
| - 'turbo.json' | |
| workflow_dispatch: | |
| 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@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build Pages artifact | |
| run: npm run pages:build | |
| - uses: actions/configure-pages@v6 | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: pages-dist | |
| deploy: | |
| 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@v5 | |
| trigger-site-pull: | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| needs: deploy | |
| steps: | |
| - name: Trigger mrtdown-site pull workflow | |
| env: | |
| MRTDOWN_SITE_PULL_URL: ${{ secrets.MRTDOWN_SITE_PULL_URL }} | |
| MRTDOWN_SITE_INTERNAL_API_TOKEN: ${{ secrets.MRTDOWN_SITE_INTERNAL_API_TOKEN }} | |
| run: | | |
| if [[ -z "$MRTDOWN_SITE_PULL_URL" ]]; then | |
| echo "::error::MRTDOWN_SITE_PULL_URL secret is required" | |
| exit 1 | |
| fi | |
| if [[ -z "$MRTDOWN_SITE_INTERNAL_API_TOKEN" ]]; then | |
| echo "::error::MRTDOWN_SITE_INTERNAL_API_TOKEN secret is required" | |
| exit 1 | |
| fi | |
| curl --fail-with-body --show-error --silent \ | |
| --user-agent "mrtdown-data-pages-deploy/1.0" \ | |
| --request POST \ | |
| --header "Accept: application/json" \ | |
| --header "Authorization: Bearer ${MRTDOWN_SITE_INTERNAL_API_TOKEN}" \ | |
| "$MRTDOWN_SITE_PULL_URL" |