Update all dependencies (#396) #298
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: "[workflow] Build and Deploy" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_deploy: | |
name: Build and Deploy documentation site | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Set up prerequisites - node and yarn | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Cache yarn dependencies | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: ./node_modules | |
key: modules-${{ hashFiles('yarn.lock') }} | |
- name: Install packages | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn install | |
- name: Build | |
run: yarn run build | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: _site |