Skip to content

Bump actions/checkout from 3 to 4 #129

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #129

Workflow file for this run

name: build-site
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: checkout submodules
run: git submodule update --init --recursive
- name: setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.117.0"
extended: true
- name: build
run: hugo --minify
- name: run lighthouse ci
uses: treosh/lighthouse-ci-action@10.1.0
with:
configPath: "./lighthouserc.json"
temporaryPublicStorage: true
uploadArtifacts: true
- name: push changes
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Build site for $GITHUB_HEAD_REF" || true
git push -f origin $GITHUB_HEAD_REF || true