Skip to content

Bump actions/checkout from 3 to 4 #123

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #123

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: build site
uses: klakegg/actions-hugo@1.0.0
with:
target: docs
- 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