Skip to content

Commit

Permalink
Hugo build improved
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Jan 21, 2020
1 parent b22e2b4 commit 8d54fbe
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/hugo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.3.2
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.62.0'
hugo-version: 'latest'

- name: Build
run: |
Expand All @@ -33,14 +33,16 @@ jobs:
- name: Check broken links
env:
INPUT_URL: https://${{ github.event.repository.name }}
INPUT_PAGES_PATH: public
INPUT_CMD_PARAMS: --buffer-size=8192 --concurrency=10 --skip-tls-verification --exclude=https://www.linkedin.com/in/petrruzicka/
EXCLUDE: |
linkedin.com
run: |
export INPUT_URL="https://${{ github.event.repository.name }}"
export INPUT_PAGES_PATH="public"
export INPUT_CMD_PARAMS="--verbose --buffer-size=8192 --concurrency=10 --skip-tls-verification --exclude=($( echo ${EXCLUDE} | tr ' ' '|' ))"
wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v1/entrypoint.sh | bash
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.8.0
uses: peaceiris/actions-gh-pages@v2
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
Expand Down

0 comments on commit 8d54fbe

Please sign in to comment.