Skip to content

Commit

Permalink
Add hugo build to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
bpcreech authored Feb 2, 2024
1 parent ea24c56 commit e875c32
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,25 @@ jobs:
- id: 'checkout'
uses: 'actions/checkout@v4'

- name: Retrieve theme
run: git submodule update --init --recursive

- name: Set up hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.119.0"

- name: Build
run: hugo --minify

- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: 'bpcreech-test-1'
workload_identity_provider: 'projects/433482736901/locations/global/workloadIdentityPools/github/providers/blog'

- id: 'upload-file'
- id: 'upload-folder'
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: 'config.toml'
destination: 'www.bpcreech.com/test_gha'
path: 'public'
destination: 'www.bpcreech.com'

0 comments on commit e875c32

Please sign in to comment.