Check Hugo build #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Hugo build | |
on: | |
# Runs on pushes targeting any branch and on pull requests | |
push: | |
pull_request: | |
schedule: | |
# rebuild every day at 2:13 UTC, to apply any change to the crosswalk | |
# table made in https://github.com/codemeta/codemeta | |
- cron: "13 2 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
env: | |
HUGO_VERSION: 0.108.0 | |
steps: | |
- name: Install Hugo CLI | |
run: | | |
DEBIAN_FRONTEND=noninteractive sudo apt-get update -y -qq | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y hugo | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Prepare data files | |
run: | | |
make | |
- name: Build with Hugo | |
run: | | |
hugo |