Skip to content

chore: bump peaceiris/actions-gh-pages from 3 to 4 (#342) #220

chore: bump peaceiris/actions-gh-pages from 3 to 4 (#342)

chore: bump peaceiris/actions-gh-pages from 3 to 4 (#342) #220

Workflow file for this run

name: "Deploy"
on:
workflow_dispatch:
push:
branches:
- hugo
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "16.x"
cache: 'yarn'
- run: yarn
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.83.1"
extended: true
- name: Build Site
run: HUGO_ENV=production ./build.sh
- name: Check links
uses: wjdp/htmltest-action@11acebff5338acdc9363f2a5e4fc0a84f96da64e
with:
path: dist
skip_external: true
config: .htmltest.yml
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: master
commit_message: ${{ github.event.head_commit.message }}