Skip to content

Commit

Permalink
Merge pull request #1986 from jasonandjay/doc
Browse files Browse the repository at this point in the history
✨feature: add doc
  • Loading branch information
junderw authored Mar 6, 2024
2 parents 1f92ada + 4ef1bdc commit 894ad02
Show file tree
Hide file tree
Showing 81 changed files with 1,410 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

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


jobs:
##################
Expand Down Expand Up @@ -124,3 +127,31 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run lint:tests

build-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: npm run doc
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs

deploy-doc:
if: github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-doc
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ npm-debug.log
test/*.js
test/integration/*.js
!test/ts-node-register.js
docs
Loading

0 comments on commit 894ad02

Please sign in to comment.