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

36 lines
674 B
YAML
Raw 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]
node: [14]
steps:
- name: Checkout
uses: actions/checkout@master
- name: Switch folder
2021-07-04 15:52:11 +00:00
run: cd nuxt
2021-07-04 15:48:06 +00:00
- name: Setup node env
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn
- name: Generate
run: yarn run generate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist