Skip to content

Move release checks into scripts (#3762) #197

Move release checks into scripts (#3762)

Move release checks into scripts (#3762) #197

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- master
- release
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write # Needed for pushing to gh-pages
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build documentation
run: yarn docs:build
- name: Deploy documentation
if: github.ref == 'refs/heads/release'
env:
GIT_USER: github-actions[bot]
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
cd docuilib
yarn install
yarn deploy
- name: Deploy disclaimer
if: github.ref != 'refs/heads/release'
run: |
echo "Deploying will only happen on release branch"