Merge pull request #1 from Davek145/browserstack #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish docs | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: nodejs | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run docs | |
- name: Publish Docs | |
if: github.ref == 'refs/heads/main' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: nodejs/docs | |
destination_dir: nodejs/jsdoc |