chore(deps): Bump the npm-dependencies group in /site with 2 updates … #332
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: Deploy Site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'site/**' | |
| - 'data/**' | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: deploy-site | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read # required to checkout repository | |
| environment: cloudflare | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 26 | |
| package-manager-cache: false | |
| - name: Install dependencies | |
| working-directory: site | |
| # Fail closed on unreviewed install scripts (npm v12 default; see allowScripts in package.json). | |
| run: npm ci --strict-allow-scripts | |
| - name: Build site | |
| working-directory: site | |
| run: npm run build | |
| - name: Fetch appcast | |
| run: | | |
| git fetch origin appcast --depth=1 | |
| git show origin/appcast:appcast.xml > site/dist/client/appcast.xml | |
| - name: Deploy to Cloudflare Workers | |
| working-directory: site | |
| run: npm run deploy | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | |
| WRANGLER_SEND_METRICS: 'false' |