Skip to content

Commit e6a2a67

Browse files
committed
Enable on all branches
1 parent a88c20b commit e6a2a67

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535
- hugo/install:
3636
version: 0.132.2
3737
- run:
38-
name: "Build website"
38+
name: "Build production website"
3939
command: |
4040
artifactsUrl="https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0/site"
4141
npm run build \
4242
-- \
4343
--baseURL "${artifactsUrl}/"
4444
environment:
4545
# For maximum backward compatibility with Hugo modules
46-
HUGO_ENVIRONMENT: circleci
47-
HUGO_ENV: circleci
46+
HUGO_ENVIRONMENT: production
47+
HUGO_ENV: production
4848
TZ: America/New_York
4949
- persist_to_workspace:
5050
paths:

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
name: Publish site to GitHub Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
5+
# Runs on all pushes
66
push:
7-
branches:
8-
- main
97

108
# Allows you to run this workflow manually from the Actions tab
119
workflow_dispatch:
@@ -72,6 +70,7 @@ jobs:
7270

7371
# Deployment job
7472
deploy:
73+
if: github.ref == 'refs/heads/main'
7574
environment:
7675
name: github-pages
7776
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)