Skip to content

Merge pull request #315 from ioriayane/Release/v0.42.0 #36

Merge pull request #315 from ioriayane/Release/v0.42.0

Merge pull request #315 from ioriayane/Release/v0.42.0 #36

Workflow file for this run

name: Deploy web site
on:
push:
tags:
- "v*"
workflow_dispatch:
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: Install Hugo CLI
run: |
sudo apt install hugo
hugo version
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc \
--minify
working-directory: ./web
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./web/public
deploy:
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@v3