forked from BlackPythonDevs/blackpythondevs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.36 KB
/
teahouse.yml
File metadata and controls
58 lines (53 loc) · 1.36 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: 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