Skip to content

ci(api): add docs-api branch logic (#2045) #505

ci(api): add docs-api branch logic (#2045)

ci(api): add docs-api branch logic (#2045) #505

Workflow file for this run

name: Api build
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: yarn install
run: |
yarn install
- name: build
run: |
git config --global user.email "manast@taskforce.sh"
git config --global user.name "manast"
git checkout docs-api
git merge master --no-commit
yarn pretest
yarn docs:json
git add .
git commit -m "chore(api): update documentation" --no-verify
git push origin docs-api
yarn docs:merge
env:
CI: true
- name: deploy
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
cname: 'api.docs.bullmq.io'