Skip to content

Commit

Permalink
add docs ci workflow for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomás Ciccola committed May 7, 2024
1 parent 9222af4 commit a22b9d8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish documentation
on:
push:
branches:
- main
jobs:
publish-documentation:
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run doc:publish
- id: upload-documentation
name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/api/html
- id: deployment
name: Deploy documentation to GitHub Pages
uses: actions/deploy-pages@v2

0 comments on commit a22b9d8

Please sign in to comment.