Skip to content

Commit

Permalink
removing build issues
Browse files Browse the repository at this point in the history
latest version of 'go' somehow fails to build pages; here is some explatations -> gohugoio/hugo#9309; and changed to main
  • Loading branch information
vk0xOrg committed Dec 22, 2021
1 parent ec4cba6 commit a84fa07
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: GitHub Pages
on:
push:
branches:
- gh-pages # Set a branch to deploy
- master # Set a branch to deploy
pull_request:

jobs:
Expand All @@ -20,15 +20,16 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
# extended: true
hugo-version: '0.90.0'
extended: true

- name: Build
run: hugo --minify
run: hugo --gc --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: main
publish_dir: ./public

0 comments on commit a84fa07

Please sign in to comment.