Skip to content

Commit

Permalink
Update deploy workflow (#87)
Browse files Browse the repository at this point in the history
Fix #86
  • Loading branch information
makenowjust authored Aug 21, 2024
1 parent 9cf46ee commit 7005cc7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -15,13 +15,26 @@ jobs:
- name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.63.2'
hugo-version: '0.133.0'
extended: true
- name: Build docs
run: make docs
- name: Deploy
uses: docker://peaceiris/gh-pages:v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./docs/public
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/public

deploy:
needs: build
name: Deploy to GitHub Pages
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ bin

# Go workspace file
go.work

docs/.hugo_*
5 changes: 3 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "docs/themes/hugo-whisper-theme"]
[submodule "hugo-whisper-theme"]
path = docs/themes/hugo-whisper-theme
url = https://github.com/jugglerx/hugo-whisper-theme.git
url = https://github.com/deining/hugo-whisper-theme.git
branch = deprecation-warning
2 changes: 1 addition & 1 deletion docs/themes/hugo-whisper-theme

0 comments on commit 7005cc7

Please sign in to comment.