File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
+ name : Publish User Guide
3
+
4
+ on :
5
+ push :
6
+ branches : ["user-guide"]
7
+
8
+ # Allows you to run this workflow manually from the Actions tab
9
+ workflow_dispatch :
10
+
11
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12
+ permissions :
13
+ contents : read
14
+ pages : write
15
+ id-token : write
16
+
17
+ # Allow one concurrent deployment
18
+ concurrency :
19
+ group : " pages"
20
+ cancel-in-progress : true
21
+
22
+ jobs :
23
+ # Build job
24
+ build :
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - name : Checkout
28
+ uses : actions/checkout@v3
29
+ - name : Setup Pages
30
+ uses : actions/configure-pages@v2
31
+ - name : Build with Jekyll
32
+ uses : actions/jekyll-build-pages@v1
33
+ with :
34
+ source : ./
35
+ destination : ./_site
36
+ - name : Upload artifact
37
+ uses : actions/upload-pages-artifact@v1
38
+
39
+ # Deployment job
40
+ deploy :
41
+ environment :
42
+ name : github-pages
43
+ url : ${{ steps.deployment.outputs.page_url }}
44
+ runs-on : ubuntu-latest
45
+ needs : build
46
+ steps :
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments