Skip to content

Commit

Permalink
Update build and release workflows (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
YeungKC authored Dec 7, 2023
1 parent f00c1ee commit cc8033d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build test
name: Publish Release

on:
push:
Expand Down Expand Up @@ -35,3 +35,18 @@ jobs:
- name: Build SSG
working-directory: ssg/
run: pnpm run build

- name: Create release directory
run: mkdir release

- name: Move files to release directory
run: |
mv dist release/spa
mv ssg/build release/ssg
- uses: montudor/action-zip@v1
with:
args: zip -qq -r release.zip release

- name: Show files
run: ls
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ jobs:
mv dist release/spa
mv ssg/build release/ssg
- uses: montudor/action-zip@v1
with:
args: zip -qq -r release.zip release

- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: release/
files: release.zip

0 comments on commit cc8033d

Please sign in to comment.