Skip to content

ci(tools): update actions/checkout digest to 1d96c77 #120

ci(tools): update actions/checkout digest to 1d96c77

ci(tools): update actions/checkout digest to 1d96c77 #120

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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # 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/
...