Skip to content

Commit

Permalink
Try add Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxuanjun committed Oct 15, 2023
1 parent 421a90e commit 380f32d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploy

on:
push:
branches: [main]
paths-ignore:
- README.md

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Build
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- run: pnpm install
- run: pnpm build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./dist
external_repository: plos-clan/plos-clan.github.io
personal_token : ${{ secrets.PLOSCLAN_DEPLOY }}
commit_message: Github CI

0 comments on commit 380f32d

Please sign in to comment.