fix: stop collecting on time expiration (#245) #397
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: Deploy Docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/**" | |
- "typedoc.json" | |
workflow_dispatch: | |
jobs: | |
docs: | |
name: Deploy Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install PNPM | |
uses: pnpm/action-setup@6e1964dde3397a825e79e4607ad57f3f7ca2c7cb | |
with: | |
version: 8.6.3 | |
- name: Install Node v14 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install -r | |
- name: Build project | |
run: pnpm run build | |
- name: Build the docs | |
run: pnpm run docs | |
- name: Commit the Docs | |
uses: cpina/github-action-push-to-another-repository@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source-directory: "docs" | |
destination-github-username: "github-actions[bot]" | |
destination-repository-username: "guildedjs" | |
destination-repository-name: "guildedjs.github.io" | |
target-branch: "main" | |
user-email: 41898282+github-actions[bot]@users.noreply.github.com |