chore(sector7): release v0.5.0 #368
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: 📊 quarto | |
| on: | |
| push: | |
| branches: [main] # production deploys | |
| pull_request: # per‑PR preview deploys | |
| types: [opened, synchronize, reopened] | |
| permissions: # required by the action | |
| actions: read # (only for private repos) | |
| contents: read | |
| deployments: write | |
| pull-requests: write | |
| jobs: | |
| deploy: | |
| runs-on: ${{ vars.ACTIONS_RUNS_ON }} | |
| permissions: | |
| id-token: write | |
| actions: read | |
| contents: read | |
| deployments: write | |
| pull-requests: write | |
| env: | |
| DIST: research/_site | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - uses: jmmaloney4/toolbox/.github/actions/nix-setup@main | |
| with: | |
| runs-on: ${{ vars.ACTIONS_RUNS_ON }} | |
| - name: Build site with Nix | |
| run: | | |
| nix develop -c quarto render ./research | |
| - name: Validate build output | |
| run: | | |
| if [ ! -d "${{ env.DIST }}" ]; then | |
| echo "Build output directory not found" | |
| exit 1 | |
| fi | |
| if [ ! -f "${{ env.DIST }}/index.html" ]; then | |
| echo "Index page not generated" | |
| ls -la "${{ env.DIST }}" | |
| exit 1 | |
| fi | |
| - name: Deploy to Cloudflare Pages | |
| id: pages | |
| uses: andykenward/github-actions-cloudflare-pages@d1f6e64c3fba8a2e4937b4a920ead2193e903cd0 # v3.2.0 | |
| with: | |
| cloudflare-api-token: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }} | |
| cloudflare-account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | |
| cloudflare-project-name: zeus | |
| directory: ${{ env.DIST }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| # main → production, everything else → preview | |
| github-environment: ${{ (github.ref == 'refs/heads/main' && 'research-production') || 'research-preview' }} |