Merge pull request #166 from DataDog/changeset-release/master #51
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 API documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.10.0 | |
- name: Install dependencies | |
run: yarn install | |
- name: Build all packages | |
run: yarn build | |
- name: Build API documentation | |
run: yarn docs | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
# The branch the action should deploy to. | |
branch: gh-pages | |
# The directory the action should deploy. | |
folder: docs/API/packages | |
git-config-name: github-actions[bot] | |
git-config-email: github-actions[bot]@users.noreply.github.com |