Skip to content

Commit

Permalink
Merge pull request #2116 from trilitech/ajinkyaraj-23@add-ci
Browse files Browse the repository at this point in the history
Add a build workflow on all platforms
  • Loading branch information
ajinkyaraj-23 authored Nov 21, 2024
2 parents 6f989d4 + 80901b1 commit 01676c7
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: release-dekstop-app
on:
push:
tags:
- 'v*.*.*'
jobs:
create-release-linux:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install GitHub CLI
run: sudo apt-get install gh

- 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: 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:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
fingerprint: ${{secrets.GPG_KEY_ID }}
git_user_signingkey: true

- name: Generate deb and rpm files
run: pnpm run electron:package:linux

- name: Sign the deb and rpm files using dpkg-sig and rpm-sign
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

1 comment on commit 01676c7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title Lines Statements Branches Functions
apps/desktop Coverage: 84%
83.88% (1764/2103) 79.35% (838/1056) 78.45% (448/571)
apps/web Coverage: 84%
83.88% (1764/2103) 79.35% (838/1056) 78.45% (448/571)
packages/components Coverage: 97%
97.84% (182/186) 96.51% (83/86) 87.03% (47/54)
packages/core Coverage: 81%
81.91% (222/271) 71.22% (99/139) 81.96% (50/61)
packages/crypto Coverage: 100%
100% (43/43) 90.9% (10/11) 100% (7/7)
packages/data-polling Coverage: 97%
95.27% (141/148) 87.5% (21/24) 92.85% (39/42)
packages/multisig Coverage: 98%
98.47% (129/131) 85.71% (18/21) 100% (36/36)
packages/social-auth Coverage: 100%
100% (21/21) 100% (11/11) 100% (3/3)
packages/state Coverage: 85%
84.73% (805/950) 80.63% (179/222) 78.89% (299/379)
packages/tezos Coverage: 89%
88.72% (118/133) 94.59% (35/37) 86.84% (33/38)
packages/tzkt Coverage: 89%
87.32% (62/71) 87.5% (14/16) 80.48% (33/41)

Please sign in to comment.