Skip to content

Commit ef9f198

Browse files
committed
add workflow for teahouse
1 parent a7747e1 commit ef9f198

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/teahouse.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
repository_dispatch:
7+
8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
contents: read # This is required for actions/checkout
11+
12+
concurrency:
13+
group: "teahouse"
14+
cancel-in-progress: false
15+
16+
jobs:
17+
# Build job
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- uses: ammaraskar/[email protected]
24+
with:
25+
pre-build-command: bundle
26+
build-command:
27+
docs-folder: "."
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: website
31+
path: ./build
32+
33+
# Deployment job
34+
deploy:
35+
if: github.repository == 'teahouse-hosting/docs.teahouse.cafe' && github.ref == 'refs/heads/trunk'
36+
environment:
37+
name: teahouse
38+
url: https://docs.teahouse.cafe
39+
runs-on: ubuntu-latest
40+
needs: build
41+
steps:
42+
- uses: actions/download-artifact@v4
43+
with:
44+
name: website
45+
path: ./build
46+
- name: Upload
47+
uses: teahouse-hosting/upload@trunk
48+
with:
49+
domain: docs.teahouse.cafe
50+
root: ./build/html

0 commit comments

Comments
 (0)