Skip to content

Commit

Permalink
Enable on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
sivanov-nuodb committed Aug 19, 2024
1 parent a88c20b commit e6a2a67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ jobs:
- hugo/install:
version: 0.132.2
- run:
name: "Build website"
name: "Build production website"
command: |
artifactsUrl="https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0/site"
npm run build \
-- \
--baseURL "${artifactsUrl}/"
environment:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: circleci
HUGO_ENV: circleci
HUGO_ENVIRONMENT: production
HUGO_ENV: production
TZ: America/New_York
- persist_to_workspace:
paths:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
name: Publish site to GitHub Pages

on:
# Runs on pushes targeting the default branch
# Runs on all pushes
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -72,6 +70,7 @@ jobs:

# Deployment job
deploy:
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit e6a2a67

Please sign in to comment.