Skip to content

ci(tools): update actions/checkout digest to 0ad4b8f #122

ci(tools): update actions/checkout digest to 0ad4b8f

ci(tools): update actions/checkout digest to 0ad4b8f #122

Workflow file for this run

---
name: general
"on":
push:
branches:
- master
pull_request:
branches:
- master
jobs:
general:
runs-on: ubuntu-latest
steps:
- name: Checkout source
id: source
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Setup nodejs
id: nodejs
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: npm
- name: Setup hugo
id: hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
extended: true
- name: Install assets
id: assets
run: npm install --ci
- name: Build website
id: build
run: hugo --cleanDestinationDir --enableGitInfo --minify --gc
- name: Deploy website
id: deploy
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
uses: netlify/actions/cli@master
with:
args: deploy --prod --dir public/
...