File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,16 @@ jobs:
35
35
- hugo/install :
36
36
version : 0.132.2
37
37
- run :
38
- name : " Build website"
38
+ name : " Build production website"
39
39
command : |
40
40
artifactsUrl="https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0/site"
41
41
npm run build \
42
42
-- \
43
43
--baseURL "${artifactsUrl}/"
44
44
environment :
45
45
# For maximum backward compatibility with Hugo modules
46
- HUGO_ENVIRONMENT : circleci
47
- HUGO_ENV : circleci
46
+ HUGO_ENVIRONMENT : production
47
+ HUGO_ENV : production
48
48
TZ : America/New_York
49
49
- persist_to_workspace :
50
50
paths :
Original file line number Diff line number Diff line change 2
2
name : Publish site to GitHub Pages
3
3
4
4
on :
5
- # Runs on pushes targeting the default branch
5
+ # Runs on all pushes
6
6
push :
7
- branches :
8
- - main
9
7
10
8
# Allows you to run this workflow manually from the Actions tab
11
9
workflow_dispatch :
72
70
73
71
# Deployment job
74
72
deploy :
73
+ if : github.ref == 'refs/heads/main'
75
74
environment :
76
75
name : github-pages
77
76
url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments