Skip to content

Commit

Permalink
feat(ci): 添加自动编译CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ISNing authored Aug 6, 2024
1 parent e81500a commit b41e219
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Slide Build CI

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/[email protected]
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build the slide
run: pnpm run build
- name: Export the slide into PDF
run: pnpm run export
- name: Upload SPA artifact
uses: actions/upload-artifact@v4
with:
name: artifact.zip
path: dist
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: dist.zip
path: slides-export.pdf

0 comments on commit b41e219

Please sign in to comment.