Skip to content

Merge pull request #428 from junior/docs_update #59

Merge pull request #428 from junior/docs_update

Merge pull request #428 from junior/docs_update #59

Workflow file for this run

name: Publish Docs
on:
push:
branches:
- master
- docs_update
paths:
- 'src/docs/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.122.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ''
- name: Setup Hugo
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build Hugo Docs
run: |
cd src/docs
make build
- name: Upload production artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./src/docs/public
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4