diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 45254fa..be238a3 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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'