Skip to content

Commit

Permalink
GitHub Actions: fix Hugo Publish to GitHub Pages
Browse files Browse the repository at this point in the history
Apparently the CNAME file also needs to be in te gh-pages branch.
  • Loading branch information
booch committed Mar 6, 2024
1 parent 810ec9c commit 6c06dde
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/hugo-publish-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,9 @@ jobs:
HUGO_ENV: production
run: |
hugo --gc --minify
cp CNAME public/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

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

0 comments on commit 6c06dde

Please sign in to comment.