From 47c4aa706f39b7ea72b10ec530c34fd9964ec6dc Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 16 Oct 2023 13:01:01 +0100 Subject: [PATCH] starters(academic): update GH Pages workflow --- starters/academic/.github/workflows/publish.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/starters/academic/.github/workflows/publish.yaml b/starters/academic/.github/workflows/publish.yaml index 6f54bce6..8ab18bb6 100644 --- a/starters/academic/.github/workflows/publish.yaml +++ b/starters/academic/.github/workflows/publish.yaml @@ -1,11 +1,13 @@ name: Deploy Wowchemy website to GitHub Pages on: + # Trigger the workflow every time you push to the `main` branch push: branches: ["main"] + # Allows you to run this workflow manually from the Actions tab on GitHub. workflow_dispatch: -# Provide permission to deploy to GitHub Pages +# Provide permission to clone the repo and deploy it to GitHub Pages permissions: contents: read pages: write @@ -44,9 +46,7 @@ jobs: HUGO_ENVIRONMENT: production HUGO_ENV: production run: | - hugo \ - --gc --minify \ - --baseURL "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/" + hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: