File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments