Skip to content

Update static.yml

Update static.yml #33

Workflow file for this run

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: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
python -m playwright install --with-deps chromium
- name: Build
run: |
render-engine serve
- 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