Deploy #87367
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: [Audit Links, External Sync, Obsidian Sync] | |
| types: | |
| - completed | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| deployments: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: 'latest' | |
| extended: true | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '25.9.0' | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Setup Python | |
| id: setup-python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11.0" | |
| cache: 'pip' | |
| - name: Generate metadata and build site | |
| run: ./ci/deploy.sh | |
| - name: Publish to Bunny Edge CDN | |
| env: | |
| BUNNY_STORAGE_ZONE: utf9k | |
| BUNNY_STORAGE_PASSWORD: ${{ secrets.BUNNY_STORAGE_PASSWORD }} | |
| BUNNY_API_KEY: ${{ secrets.BUNNY_GLOBAL_API_KEY }} | |
| BUNNY_PULL_ZONE_HOST: utf9k.net | |
| run: python ci/bunny-deploy.py |