Skip to content

Commit

Permalink
Merge pull request #217 from desci-labs/m0ar/nodes-lib-docsite
Browse files Browse the repository at this point in the history
Add workflow for building and publishing nodes-lib docs
  • Loading branch information
m0ar authored Feb 22, 2024
2 parents 9ff8eea + a734a76 commit f0e3485
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 f0e3485

Please sign in to comment.