2022-09-30 08:59:03 -06:00
|
|
|
name: Website Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-09-30 10:59:46 -04:00
|
|
|
- main
|
2022-09-30 08:59:03 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-30 11:13:22 -04:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install
|
|
|
|
uses: borales/actions-yarn@v3.0.0
|
2022-09-30 08:59:03 -06:00
|
|
|
with:
|
2022-09-30 11:14:41 -04:00
|
|
|
cmd: --cwd website install # will run `yarn install` command
|
2022-09-30 11:13:22 -04:00
|
|
|
- name: Build
|
|
|
|
uses: borales/actions-yarn@v3.0.0
|
|
|
|
working-directory: website
|
|
|
|
with:
|
2022-09-30 11:14:41 -04:00
|
|
|
cmd: --cwd website build # will run `yarn build` command
|
2022-09-30 11:13:22 -04:00
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
publish_dir: ./website/dist
|