Skip to content

Bump crazy-max/ghaction-github-pages from 3 to 4 #62

Bump crazy-max/ghaction-github-pages from 3 to 4

Bump crazy-max/ghaction-github-pages from 3 to 4 #62

Workflow file for this run

---
name: Deploy to GitHub Pages
# Controls when the workflow will run
on:
push:
branches:
- master
- main
pull_request:
# The sequence of runs in this workflow:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- run: lsb_release -a
- run: uname -a
- name: Check out Repository Code
uses: actions/checkout@v3
with:
submodules: true # Fetch submodules
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set Up Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.122.0"
extended: true
- name: Write composite package.json
run: hugo mod npm pack
- name: Install npm Packages
run: npm ci
- name: Build Hugo
run: hugo --minify
- name: Deploy to gh-pages
uses: crazy-max/ghaction-github-pages@v4
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
with:
# the output branch mentioned above
target_branch: gh-pages
build_dir: ./public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}