static-cms/.github/workflows/website-publish.yml
2022-09-30 11:53:25 -04:00

26 lines
633 B
YAML

name: Website Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: borales/actions-yarn@v3.0.0
with:
cmd: --cwd website install # will run `yarn install` command
- name: Build
uses: borales/actions-yarn@v3.0.0
with:
cmd: --cwd website build # will run `yarn build` command
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./website/dist