Skip to content

Commit a88a9d2

Browse files
committed
fix: fix workflow
1 parent 52853a5 commit a88a9d2

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.github/workflows/hugo.yaml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,75 +2,75 @@
22
name: Deploy Hugo site to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
6-
push:
5+
# Runs on pushes targeting the default branch
6+
push:
77
branches:
8-
- main
8+
- main
99

10-
# Allows you to run this workflow manually from the Actions tab
11-
workflow_dispatch:
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
1212

1313
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1414
permissions:
15-
contents: read
16-
pages: write
17-
id-token: write
15+
contents: read
16+
pages: write
17+
id-token: write
1818

1919
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2020
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2121
concurrency:
22-
group: "pages"
23-
cancel-in-progress: false
22+
group: "pages"
23+
cancel-in-progress: false
2424

2525
# Default to bash
2626
defaults:
27-
run:
27+
run:
2828
shell: bash
2929

3030
jobs:
31-
# Build job
32-
build:
31+
# Build job
32+
build:
3333
runs-on: ubuntu-latest
3434
env:
35-
HUGO_VERSION: 0.142.0
35+
HUGO_VERSION: 0.142.0
3636
steps:
37-
- name: Install Hugo CLI
37+
- name: Install Hugo CLI
3838
run: |
39-
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40-
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41-
- name: Checkout
39+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41+
- name: Checkout
4242
uses: actions/checkout@v4
4343
with:
44-
submodules: recursive
45-
fetch-depth: 0
46-
- name: Setup Pages
44+
submodules: recursive
45+
fetch-depth: 0
46+
- name: Setup Pages
4747
id: pages
4848
uses: actions/configure-pages@v3
49-
- name: Install Node.js dependencies
49+
- name: Install Node.js dependencies
5050
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51-
- name: Build with Hugo
51+
- name: Build with Hugo
5252
env:
53-
# For maximum backward compatibility with Hugo modules
54-
HUGO_ENVIRONMENT: production
55-
HUGO_ENV: production
53+
# For maximum backward compatibility with Hugo modules
54+
HUGO_ENVIRONMENT: production
55+
HUGO_ENV: production
5656
run: |
57-
hugo \
57+
hugo \
5858
--gc \
5959
--minify \
6060
--baseURL "${{ steps.pages.outputs.base_url }}/"
61-
- name: Upload artifact
61+
- name: Upload artifact
6262
uses: actions/upload-pages-artifact@v1
6363
with:
64-
path: ./public
64+
path: ./public
6565

66-
# Deployment job
67-
deploy:
66+
# Deployment job
67+
deploy:
6868
environment:
69-
name: github-pages
70-
url: ${{ steps.deployment.outputs.page_url }}
69+
name: github-pages
70+
url: ${{ steps.deployment.outputs.page_url }}
7171
runs-on: ubuntu-latest
7272
needs: build
7373
steps:
74-
- name: Deploy to GitHub Pages
74+
- name: Deploy to GitHub Pages
7575
id: deployment
76-
uses: actions/deploy-pages@v2
76+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)