Skip to content

Update actions/checkout action to v4.1.5 (#87) #58

Update actions/checkout action to v4.1.5 (#87)

Update actions/checkout action to v4.1.5 (#87) #58

Workflow file for this run

name: Build site
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: true
fetch-depth: 0
- name: Read .env
id: hugo-version
run: |
. ./.env
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "${{ steps.hugo-version.outputs.HUGO_VERSION }}"
extended: true
- run: hugo version
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public