Publish to GH Pages on Tag #45
Workflow file for this run
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: Publish to GH Pages on Tag | |
on: | |
create: | |
tags: releases/[1-9]+.[0-9]+.[0-9]+ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install npm | |
run: npm ci | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.83.1' | |
extended: true | |
- name: Build | |
run: hugo --minify | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: rezepte | |
path: public | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: public |