Skip to content

Commit

Permalink
update release action to generate docs
Browse files Browse the repository at this point in the history
includes building and uploading docs to github pages.
  • Loading branch information
andogq committed Apr 15, 2024
1 parent b7bad3f commit c8c873b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,36 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

generate-docs:
name: Generate and deploy documentation

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Build docs
run: npm run doc

- name: Setup pages
uses: actions/configure-pages@v4

- name: Upload docs
uses: actions/upload-pages-artifact@v2
with:
path: ./docs

- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit c8c873b

Please sign in to comment.