Skip to content

Commit

Permalink
Build on every PR (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
immccn123 authored Aug 4, 2024
1 parent 5c5ef18 commit 2be8261
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Build artifacts

on:
pull_request:
push:
branches: [main]

Expand Down Expand Up @@ -46,16 +47,16 @@ jobs:
- name: Build
run: pnpm -r run build

- name: Upload luogu-discussion-archive
uses: actions/upload-artifact@v3
with:
name: luogu-discussion-archive
path: packages/archive/dist/

- name: Upload luogu-discussion-viewer
uses: actions/upload-artifact@v3
with:
name: luogu-discussion-viewer
path: |
packages/viewer/.next/
!packages/viewer/.next/cache/
# - name: Upload luogu-discussion-archive
# uses: actions/upload-artifact@v3
# with:
# name: luogu-discussion-archive
# path: packages/archive/dist/

# - name: Upload luogu-discussion-viewer
# uses: actions/upload-artifact@v3
# with:
# name: luogu-discussion-viewer
# path: |
# packages/viewer/.next/
# !packages/viewer/.next/cache/

0 comments on commit 2be8261

Please sign in to comment.