added hugo build action #2
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: "Update documentation" | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: [ "master" ] | ||
paths: [ "docs/*", "hack/hugo/*", ".github/workflows/update-doc.yaml" ] | ||
pull_request: | ||
paths: [ "docs/*", "hack/hugo/*", ".github/workflows/update-doc.yaml" ] | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
hugo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Run Hugo | ||
uses: crazy-max/ghaction-hugo@v3 | ||
run: | ||
Check failure on line 36 in .github/workflows/update-doc.yaml GitHub Actions / Update documentationInvalid workflow file
|
||
working-directory: hack/hugo/hugo-test | ||
with: | ||
version: latest | ||
extended: false | ||
args: --cleanDestinationDir --minify -D | ||
- | ||
name: Deploy to GitHub Pages | ||
if: github.event_name != 'pull_request' | ||
uses: crazy-max/ghaction-github-pages@v4 | ||
run: | ||
working-directory: hack/hugo/hugo-test | ||
with: | ||
target_branch: gh-pages | ||
build_dir: public | ||
#repo: github.com/fredbi/go-swagger.github.io | ||
allow_empty_commit: false | ||
jekyll: false | ||
verbose: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |