Update templates to handle missing author field gracefully #159
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: Publish | |
| on: | |
| push: | |
| workflow_dispatch: | |
| repository_dispatch: | |
| permissions: | |
| id-token: write # This is required for requesting the JWT | |
| contents: read # This is required for actions/checkout | |
| concurrency: | |
| group: "teahouse" | |
| cancel-in-progress: false | |
| jobs: | |
| # Build job | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| run: uv python install 3.12 | |
| - name: Install dependencies | |
| run: | | |
| uv sync --extra dev | |
| uv run playwright install --with-deps chromium | |
| - name: Build | |
| run: | | |
| uv run render-engine build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: website | |
| path: ./output | |
| # Deployment job | |
| deploy: | |
| if: github.repository == 'teahouse-hosting/docs.teahouse.cafe' && github.ref == 'refs/heads/trunk' | |
| environment: | |
| name: teahouse | |
| url: https://docs.teahouse.cafe | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: website | |
| path: ./output | |
| - name: Upload | |
| uses: teahouse-hosting/upload@trunk | |
| with: | |
| domain: docs.teahouse.cafe | |
| root: ./build/html |