Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
027xiguapi committed Apr 9, 2024
1 parent 1e19f16 commit 300469e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
with:
node-version: 20

- uses: pnpm/action-setup@v3
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

Expand All @@ -30,12 +30,24 @@ jobs:
run: 'pnpm run build:desktop'
env:
GITHUB_TOKEN: '${{ secrets.ACCESS_TOKEN }}'
- name: upload artifacts

- name: Cleanup Artifacts for Windows
if: matrix.os == 'windows-latest'
run: |
npx rimraf "packages/desktop/release/!(*.exe)"
- name: Cleanup Artifacts for MacOS
if: matrix.os == 'macos-latest'
run: |
npx rimraf "packages/desktop/release/!(*.dmg)"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: '${{ matrix.os }}'
path: packages/desktop/release
- name: release

- name: Release
uses: softprops/action-gh-release@v2
if: "startsWith(github.ref, 'refs/tags/')"
with:
Expand Down

0 comments on commit 300469e

Please sign in to comment.