Set up your GitHub Actions workflow with a specific version of hugo-preproc.
Input hugo-preproc-version
is optional; default is to install the latest version. See hugo-preproc releases for list of specific semver release tags.
Add a step that calls jason-dour/action-setup-hugo-preproc
, providing the GITHUB_TOKEN
from the workflow as an environment variable. This is required.
steps:
- uses: actions/checkout@v3
- uses: jason-dour/action-setup-hugo-preproc@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: hugo-preproc --version
Optionally, you may also specify the semver release tag of a specific hugo-preproc release to be installed.
steps:
- uses: actions/checkout@v3
- uses: jason-dour/action-setup-hugo-preproc@v1.0.0
with:
hugo-preproc-version: v3.10.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: hugo-preproc --version