Build manifest and deploy pages #1
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 manifest and deploy pages | |
| on: | |
| push: | |
| branches: [release] | |
| paths: | |
| - 'docs/**' | |
| - 'scripts/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.github/workflows/pages.yml' | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: release | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - run: npm ci | |
| - run: npm run manifest:gen | |
| - run: npm run manifest:sign | |
| env: | |
| ED25519_PRIV_KEY_B64: ${{ secrets.ED25519_PRIV_KEY_B64 }} | |
| - run: npm run manifest:verify | |
| env: | |
| ED25519_PUB_KEY_HEX: ${{ secrets.ED25519_PUB_KEY_HEX }} | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |