Skip to content

Commit

Permalink
Update hugo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imendizabal authored Jun 25, 2024
1 parent 232061d commit 766f3c6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -43,27 +44,28 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '14' # Specify the Node.js version you need
- name: Setup Node environment
uses: actions/setup-node@v2
with:
node-version: '14' # Specify the Node.js version you need
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Install PostCSS CLI
run: npm install -g postcss-cli
run: npm install -g postcss-cli
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
#-s docs
-s docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 766f3c6

Please sign in to comment.