Merge pull request #214 from taras/feat/component-retain #14
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/**" | |
| - ".github/workflows/deploy.yml" | |
| workflow_dispatch: | |
| # Requires: | |
| # secret DENO_DEPLOY_TOKEN — Deno Deploy access token | |
| # var DENO_DEPLOY_PROJECT — Deno Deploy project name | |
| # Prefer the Deno Deploy Git integration (console.deno.com); this workflow is | |
| # an explicit alternative. It is skipped unless the project variable is set. | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| deploy: | |
| if: ${{ vars.DENO_DEPLOY_PROJECT != '' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3 | |
| with: | |
| deno-version: v2.9.1 | |
| - name: Install workspace deps | |
| run: deno install | |
| - name: Build site | |
| run: deno task build | |
| working-directory: site | |
| - name: Deploy to Deno Deploy | |
| uses: denoland/deployctl@35381c73621e1731268f80e51b54718d086f1e64 # v1 | |
| with: | |
| project: ${{ vars.DENO_DEPLOY_PROJECT }} | |
| entrypoint: server-entry.js | |
| root: site/_fresh/server | |
| token: ${{ secrets.DENO_DEPLOY_TOKEN }} |