Skip to content

Commit

Permalink
feat: add gh-pages deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthyadms authored Sep 27, 2023
1 parent 04154a1 commit ca451d8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: cd

on: [push, pull_request]

jobs:
cd:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [20]

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

- name: Generate
run: yarn generate

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit ca451d8

Please sign in to comment.