-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5e4338
commit bf46706
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Build and Deploy Hugo | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
@@ -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 }} | ||
|