Skip to content

Commit

Permalink
Add release mac workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OKendigelyan committed Nov 21, 2024
1 parent 01676c7 commit 8ea814d
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 15 deletions.
72 changes: 58 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
name: release-dekstop-app
name: release-desktop-app

on:
push:
tags:
- 'v*.*.*'
tags:
- "v*.*.*"

jobs:
create-release-linux:
create-draft-release:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install GitHub CLI
run: sudo apt-get install gh
- name: Create Draft Release for ${{ github.ref_name }}
env:
GH_TOKEN: ${{ secrets.PERSONAL_GH_TOKEN }}
run: gh release create ${{ github.ref_name }} --draft --title "${{ github.ref_name }}" --generate-notes

create-release-linux:
runs-on: ubuntu-latest
needs: create-draft-release
steps:
- name: Check out code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
Expand All @@ -21,20 +32,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.18.0
cache: 'pnpm'
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Create Draft Release
run: gh release create ${{ github.ref }} --draft --title "Release ${{ github.ref }}" --notes-from-tag

- name: Enter desktop app directory
run: cd apps/desktop

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
Expand All @@ -44,13 +49,52 @@ jobs:
git_user_signingkey: true

- name: Generate deb and rpm files
working-directory: apps/desktop
run: pnpm run electron:package:linux

- name: Sign the deb and rpm files using dpkg-sig and rpm-sign
working-directory: apps/desktop
run: |
sudo apt install -y dpkg-sig
dpkg-sig --sign builder -k ${{ secrets.GPG_KEY_ID }} ./dist/*.deb
rpm --addsign ./dist/*.rpm
- name: Upload deb and rpm files
run: gh release upload ${{ github.ref }} ./dist/*.deb ./dist/*.rpm
working-directory: apps/desktop
env:
GH_TOKEN: ${{ secrets.PERSONAL_GH_TOKEN }}
run: gh release upload ${{ github.ref_name }} ./dist/*.deb ./dist/*.rpm

create-release-mac:
runs-on: macos-latest
needs: create-draft-release
steps:
- name: Check out code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9.9.0

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.18.0
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Build and sign mac app
working-directory: apps/desktop
env:
CI: true
GH_TOKEN: ${{ secrets.PERSONAL_GH_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
run: pnpm run electron:package:mac
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@umami/desktop",
"productName": "umami",
"version": "2.3.4",
"version": "2.3.5",
"author": "Trilitech <[email protected]>",
"description": "Tezos Desktop Wallet",
"homepage": "https://umamiwallet.com",
Expand Down

0 comments on commit 8ea814d

Please sign in to comment.