From e5bee819cd1576f3e5a28760d9b04e8fc41927ce Mon Sep 17 00:00:00 2001 From: Timeo Williams Date: Mon, 30 Sep 2024 19:06:19 -0400 Subject: [PATCH] build: add DMG release --- .github/workflows/release.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 826c37a..bf345e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 'lts/*' + - name: Install pnpm run: npm install -g pnpm @@ -39,7 +40,21 @@ jobs: - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: pnpm audit signatures - - name: Release + + # Save the DMG file for later steps + - name: Save DMG output + run: | + ls dist/mac/*.dmg + echo "DMG_PATH=$(ls dist/mac/*.dmg)" >> $GITHUB_ENV + + - name: Semantic Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npx semantic-release + + - name: Upload DMG to GitHub Release + uses: softprops/action-gh-release@v1 + with: + files: ${{ env.DMG_PATH }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}