Bump ua-parser-js from 0.7.28 to 0.7.38 in /website #555
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: Docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
- 'scripts/**' | |
- 'torchts/**' | |
- 'website/**' | |
- 'poetry.lock' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
- 'scripts/**' | |
- 'torchts/**' | |
- 'website/**' | |
- 'poetry.lock' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up TorchTS | |
uses: ./.github/actions/setup-torchts | |
with: | |
python-version: 3.9 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 14 | |
- name: Build Sphinx documentation | |
run: scripts/build_docs.sh | |
- name: Build Docusaurus website | |
run: | | |
cd website | |
npm install | |
npm run build | |
- name: Generate token | |
if: success() && github.event_name == 'push' | |
id: generate-token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Deploy documentation | |
if: success() && github.event_name == 'push' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
git-config-name: torchts-bot[bot] | |
git-config-email: 88511308+torchts-bot[bot]@users.noreply.github.com | |
branch: gh-pages | |
folder: website/build | |
clean: true | |
clean-exclude: | | |
README.md |