Skip to content

Commit

Permalink
Add workflow for building and publishing nodes-lib docs
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ar committed Feb 21, 2024
1 parent 9ff8eea commit a734a76
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/nodes-lib-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Generate nodes-lib docs and deploy to github pages
on:
push:
branches:
- develop
paths:
- nodes-lib/**
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Configure GitHub Pages
uses: actions/configure-pages@v3

- uses: actions/setup-node@v3

- name: Generate docs
run: |
cd nodes-lib
npm ci
npx typedoc src/index.ts
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: nodes-lib/docs

deploy:
needs: generate
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit a734a76

Please sign in to comment.