-
Notifications
You must be signed in to change notification settings - Fork 68
58 lines (53 loc) · 1.35 KB
/
teahouse.yml
File metadata and controls
58 lines (53 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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