Skip to content

Commit

Permalink
Update hugo.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
BTx123 committed Nov 11, 2024
1 parent 471dcc1 commit 6570524
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
branches: [$default-branch]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -32,12 +31,22 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.134.2
HUGO_VERSION: 0.136.2
steps:
- name: Setup Go
uses: actions/setup-go/v5
with:
go-version: '1.23.x'
- name: Install Go dependencies
run: |
go get .
- name: Run Go Gallery Data Generation
run: |
go run main.go
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
Expand All @@ -59,7 +68,7 @@ jobs:
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -76,4 +85,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 6570524

Please sign in to comment.