File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
- # Sample workflow for building and deploying a Hugo site to GitHub Pages
2
1
name : Deploy Hugo site to Pages
3
2
4
3
on :
5
- # Runs on pushes targeting the default branch
6
4
push :
7
5
branches :
8
6
- main
9
-
10
- # Allows you to run this workflow manually from the Actions tab
11
7
workflow_dispatch :
12
8
13
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
9
permissions :
15
10
contents : read
16
11
pages : write
17
12
id-token : write
18
13
19
- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20
- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21
14
concurrency :
22
15
group : " pages"
23
16
cancel-in-progress : false
24
17
25
- # Default to bash
26
18
defaults :
27
19
run :
28
20
shell : bash
29
21
30
22
jobs :
31
- # Build job
32
23
build :
33
24
runs-on : ubuntu-latest
34
25
env :
52
43
run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
53
44
- name : Build with Hugo
54
45
env :
55
- # For maximum backward compatibility with Hugo modules
56
46
HUGO_ENVIRONMENT : production
57
47
HUGO_ENV : production
58
48
run : |
@@ -61,11 +51,10 @@ jobs:
61
51
--minify \
62
52
--baseURL "${{ steps.pages.outputs.base_url }}/"
63
53
- name : Upload artifact
64
- uses : actions/upload-artifact@v3
54
+ uses : actions/upload-artifact@v4
65
55
with :
66
56
path : ./public
67
57
68
- # Deployment job
69
58
deploy :
70
59
environment :
71
60
name : github-pages
75
64
steps :
76
65
- name : Deploy to GitHub Pages
77
66
id : deployment
78
- uses : actions/deploy-pages@v3
79
-
67
+ uses : actions/deploy-pages@v3
You can’t perform that action at this time.
0 commit comments