Skip to content

Commit

Permalink
use hugo extended with deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
torbjornbp authored Dec 8, 2024
1 parent c5e4338 commit bf46706
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build and Deploy Hugo

on:
push:
branches: [ "main" ]
Expand All @@ -12,13 +11,22 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: setup hugo
uses: peaceiris/[email protected]

- name: Set up Go
uses: actions/setup-go@v4
with:
hugo-version: '0.129.0'
- name: build site
go-version: '1.21'

- name: Install Hugo with deploy support
run: |
sudo apt-get update
sudo apt-get install -y gcc
CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/[email protected]
- name: Build site
run: hugo
- name: deploy to s3

- name: Deploy to S3
run: hugo deploy --force --maxDeletes -1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
Expand Down

0 comments on commit bf46706

Please sign in to comment.