wieerwill.github.io/.github/workflows/cd.yml

36 lines
698 B
YAML
Raw Permalink Normal View History

2021-07-04 15:48:06 +00:00
name: cd
on: [push, pull_request]
jobs:
cd:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
2023-08-12 07:47:35 +00:00
node: [18]
2021-07-04 15:48:06 +00:00
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup node env
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn
2021-07-04 16:00:58 +00:00
working-directory: ./nuxt
2021-07-04 15:48:06 +00:00
- name: Generate
run: yarn run generate
2021-07-04 16:00:58 +00:00
working-directory: ./nuxt
2021-07-04 15:48:06 +00:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2021-07-04 16:08:59 +00:00
publish_dir: ./nuxt/dist