Skip to content

Commit

Permalink
publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort committed Nov 25, 2024
1 parent 5f690a1 commit 3e50b73
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Docs
on:
push:
branches:
- main

jobs:
publish:
name: Hugo
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}/go
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/rotationalio/honu/docs
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/rotationalio/honu
submodules: true
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.139.2'
extended: false

- name: Build
run: hugo --gc --minify --templateMetrics --templateMetricsHints --verbose --verboseLog --buildDrafts --buildExpired --buildFuture --forceSyncStatic

- name: Publish
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ${{ env.GOPATH }}/src/github.com/rotationalio/honu/docs/public
cname: honudb.dev

0 comments on commit 3e50b73

Please sign in to comment.