starters(academic): update GH Pages workflow

This commit is contained in:
Splitter
2023-10-16 12:01:28 +00:00
parent 5c96ebac5d
commit e0cf347f97

View File

@@ -1,11 +1,13 @@
name: Deploy Wowchemy website to GitHub Pages name: Deploy Wowchemy website to GitHub Pages
on: on:
# Trigger the workflow every time you push to the `main` branch
push: push:
branches: ["main"] branches: ["main"]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch: workflow_dispatch:
# Provide permission to deploy to GitHub Pages # Provide permission to clone the repo and deploy it to GitHub Pages
permissions: permissions:
contents: read contents: read
pages: write pages: write
@@ -44,9 +46,7 @@ jobs:
HUGO_ENVIRONMENT: production HUGO_ENVIRONMENT: production
HUGO_ENV: production HUGO_ENV: production
run: | run: |
hugo \ hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
--gc --minify \
--baseURL "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/"
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v2 uses: actions/upload-pages-artifact@v2
with: with: