Skip to content

Commit

Permalink
Fixes mllint version not showing correctly on GH Pages site on tagg…
Browse files Browse the repository at this point in the history
…ed releases
  • Loading branch information
bvobart committed Aug 4, 2021
1 parent 2e70662 commit 9693f88
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,7 @@ jobs:
- name: Generate Categories & Rules documentation
run: go run ./docs/gh-pages/scripts/generate-docs.go

- name: Build website (tagged version)
if: startsWith(github.ref, 'refs/tags/v')
working-directory: docs/gh-pages/
env:
HUGO_MLLINT_VERSION: ${GITHUB_REF#refs/tags/v}
run: |
echo "> mllint version: $HUGO_MLLINT_VERSION"
hugo --minify
- name: Build website (regular commit)
if: startsWith(github.ref, 'refs/heads/')
- name: Build website
working-directory: docs/gh-pages/
run: |
export HUGO_MLLINT_VERSION=$(git describe --tags)
Expand Down

0 comments on commit 9693f88

Please sign in to comment.