mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
starters(academic): update GH Pages workflow
This commit is contained in:
parent
ebcb00fbd6
commit
47c4aa706f
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue