Skip to content

Commit

Permalink
ci: cd with ghp
Browse files Browse the repository at this point in the history
  • Loading branch information
alswl committed May 3, 2024
1 parent 638cb6d commit a637c20
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: github pages

on:
push:
branches:
- * # Set a branch to deploy

jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [18.x, 20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://registry.yarnpkg.com'

- name: install pnpm
run: npm i pnpm@latest -g
- run: pnpm install
- run: pnpm build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit a637c20

Please sign in to comment.