File tree Expand file tree Collapse file tree 2 files changed +51
-45
lines changed Expand file tree Collapse file tree 2 files changed +51
-45
lines changed Original file line number Diff line number Diff line change
1
+ # Generated initially using github-actions-wizard (https://github.com/cmdr2/github-actions-wizard)
2
+
3
+ name : CI Pipeline
4
+ run-name : CI Pipeline
5
+ on :
6
+ push :
7
+ branches :
8
+ - main
9
+ concurrency :
10
+ group : pages
11
+ cancel-in-progress : true
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : read
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+ - name : Setup Hugo
21
+ uses : peaceiris/actions-hugo@v2
22
+ with :
23
+ hugo-version : latest
24
+ - name : Build
25
+ run : |-
26
+ hugo --minify
27
+ - name : Upload pages artifact
28
+ uses : actions/upload-pages-artifact@v3
29
+ with :
30
+ name : build
31
+ path : public
32
+ deploy_to_github_pages :
33
+ runs-on : ubuntu-latest
34
+ permissions :
35
+ contents : read
36
+ id-token : write
37
+ pages : write
38
+ if : github.ref == 'refs/heads/main'
39
+ environment :
40
+ name : github-pages
41
+ url : ${{ steps.deployment.outputs.page_url }}
42
+ needs : build
43
+ steps :
44
+ - name : Publish Message
45
+ run : |-
46
+ echo Publishing the 'build' artifact
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v4
50
+ with :
51
+ artifact_name : build
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments