Skip to content

Commit

Permalink
Merge pull request #192 from gopxl/docgen
Browse files Browse the repository at this point in the history
Docgen pt. 2
  • Loading branch information
MarkKremer authored Oct 24, 2024
2 parents d7dfbea + 31b2316 commit ee37d54
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,28 @@ jobs:
permissions:
pages: write
id-token: write
env:
DOCS_DIR: 'docs/'
OUTPUT_DIR: '_site/'
MAIN_BRANCH: 'main'
steps:
- name: Configure pages
uses: actions/configure-pages@v5
id: configure-pages
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ env.MAIN_BRANCH }}
fetch-depth: 0 # checkout a non-shallow copy so the generator can generate docs for all major versions
- uses: gopxl/docs@main
with:
docs-directory: 'docs/'
main-branch: 'main'
site-url: ${{ steps.configure-pages.outputs.base_url }}
docs-directory: ${{ env.DOCS_DIR }}
output-directory: ${{ env.OUTPUT_DIR }}
main-branch: ${{ env.MAIN_BRANCH }}
- name: Upload pages
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.OUTPUT_DIR }}
- name: Deploy pages
uses: actions/deploy-pages@v4

0 comments on commit ee37d54

Please sign in to comment.