diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d60104b..f1ef103 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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: