File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Deploy Jekyll with GitHub Pages dependencies preinstalled
3
+
4
+ on :
5
+ push :
6
+ branches : ["gh-pages"]
7
+ workflow_dispatch :
8
+
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16
+ concurrency :
17
+ group : " pages"
18
+ cancel-in-progress : false
19
+
20
+ jobs :
21
+ build :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@v4
26
+ - name : Setup Pages
27
+ uses : actions/configure-pages@v4
28
+ - name : Build with Jekyll
29
+ uses : actions/jekyll-build-pages@v1
30
+ with :
31
+ source : ./
32
+ destination : ./_site
33
+ - name : Upload artifact
34
+ uses : actions/upload-pages-artifact@v3
35
+
36
+ deploy :
37
+ environment :
38
+ name : github-pages
39
+ url : ${{ steps.deployment.outputs.page_url }}
40
+ runs-on : ubuntu-latest
41
+ needs : build
42
+ steps :
43
+ - name : Deploy to GitHub Pages
44
+ id : deployment
45
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments