|
|
|
@ -1,26 +1,20 @@
|
|
|
|
|
# Sample workflow for building and deploying a Hugo site to GitHub Pages
|
|
|
|
|
name: Deploy Hugo site to Pages
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
# Runs on pushes targeting the default branch
|
|
|
|
|
push:
|
|
|
|
|
branches: ["**"]
|
|
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
|
|
|
permissions:
|
|
|
|
|
contents: read
|
|
|
|
|
pages: write
|
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
|
|
# Allow one concurrent deployment
|
|
|
|
|
concurrency:
|
|
|
|
|
group: "pages"
|
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
|
|
# Default to bash
|
|
|
|
|
defaults:
|
|
|
|
|
run:
|
|
|
|
|
shell: bash
|
|
|
|
@ -44,7 +38,6 @@ jobs:
|
|
|
|
|
uses: actions/configure-pages@v2
|
|
|
|
|
- name: Build with Hugo
|
|
|
|
|
env:
|
|
|
|
|
# For maximum backward compatibility with Hugo modules
|
|
|
|
|
HUGO_ENVIRONMENT: production
|
|
|
|
|
HUGO_ENV: production
|
|
|
|
|
run: |
|
|
|
|
@ -68,7 +61,6 @@ jobs:
|
|
|
|
|
# cd exampleSite
|
|
|
|
|
# hugo --baseURL ${{ steps.pages.outputs.base_url }} --environment production --minify --themesDir ../..
|
|
|
|
|
|
|
|
|
|
# Deployment job
|
|
|
|
|
deploy:
|
|
|
|
|
environment:
|
|
|
|
|
name: github-pages
|
|
|
|
|