File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name : Deploy static content to Pages
3
+
4
+ on :
5
+ push :
6
+ branches : ["main"]
7
+
8
+ workflow_dispatch :
9
+
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
15
+ concurrency :
16
+ group : " pages"
17
+ cancel-in-progress : false
18
+
19
+ jobs :
20
+ deploy :
21
+ environment :
22
+ name : github-pages
23
+ url : ${{ steps.deployment.outputs.page_url }}
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@v4
28
+ - name : Asciidoc
29
+
30
+ with :
31
+ src : en.adoc
32
+ dest : target/public
33
+ - name : Setup Pages
34
+ uses : actions/configure-pages@v5
35
+ - name : Upload artifact
36
+ uses : actions/upload-pages-artifact@v3
37
+ with :
38
+ # Upload entire repository
39
+ path : ' target/public/'
40
+ - name : Deploy to GitHub Pages
41
+ id : deployment
42
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments