Skip to content

Update hugo docker

Update hugo docker #29

Workflow file for this run

name: Publish
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build static
run: make build_static
- name: Build with Hugo
env:
BASE_URL: "${{ steps.pages.outputs.base_url }}/"
run: make build UID=$(id -u) GID=$(id -g)
- name: Upload artifact
if: github.ref_name == github.event.repository.default_branch
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
if: github.ref_name == github.event.repository.default_branch
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4