static-cms/.github/workflows/website-publish.yml

32 lines
727 B
YAML
Raw Normal View History

2022-09-30 11:19:06 -04:00
name: Website Publish
on:
push:
paths:
- website/**
2022-09-30 11:19:06 -04:00
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
2022-09-30 11:57:40 -04:00
- name: Setup Node.js
uses: actions/setup-node@v3
2022-09-30 11:19:06 -04:00
with:
2022-09-30 11:57:40 -04:00
node-version: '16'
cache: 'yarn'
2022-09-30 12:00:20 -04:00
cache-dependency-path: 'website/yarn.lock'
2022-09-30 11:57:40 -04:00
- name: Install
2022-09-30 12:00:20 -04:00
working-directory: website
2022-09-30 11:57:40 -04:00
run: yarn install --immutable
2022-09-30 11:19:06 -04:00
- name: Build
2022-09-30 12:00:20 -04:00
working-directory: website
2022-09-30 11:57:40 -04:00
run: yarn build
2022-09-30 11:19:06 -04:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
2022-09-30 12:00:20 -04:00
publish_dir: website/dist