Skip to content

Commit

Permalink
build: add DMG release
Browse files Browse the repository at this point in the history
  • Loading branch information
timeowilliams committed Sep 30, 2024
1 parent 58b0f4d commit e5bee81
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Install pnpm
run: npm install -g pnpm

Expand All @@ -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 }}

0 comments on commit e5bee81

Please sign in to comment.