Skip to content

Commit

Permalink
update(ci): workflow updates (#1301)
Browse files Browse the repository at this point in the history
* update(ci): updated automated replay message for newly created issue

* fix noterisation issue

* added teamId

* updated electron-builder version

* commented appBundleId

* updated ci actions versions
  • Loading branch information
fullstackninja864 authored May 24, 2024
1 parent 8295066 commit 2e04597
Show file tree
Hide file tree
Showing 7 changed files with 842 additions and 280 deletions.
3 changes: 1 addition & 2 deletions .github/governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ issue:
owner: true
needs:
comment: |
@$AUTHOR: Thanks for opening an issue, it is currently awaiting triage.
@$AUTHOR: Thank you for opening an issue, however we regret to inform you that the DeFiChain Desktop Wallet is currently in maintenance mode and should you require anything, please raise it up in the DeFiChain International Telegram group.
The triage/accepted label can be added by foundation members by writing `/triage accepted` in a comment.
In the meantime, you can:
Expand Down
31 changes: 16 additions & 15 deletions .github/workflows/dev-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ jobs:
build_linux_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: install dependencies
run: npm cache clean --force && npm run init

- name: Build app
run: npm run build:linux

- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: linux-build
path: 'dist/DeFi Wallet-${{ env.PACKAGE_VERSION}}.AppImage'

build_mac_version:
runs-on: macos-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: install dependencies
run: npm cache clean --force && npm run init
Expand All @@ -52,26 +52,27 @@ jobs:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
CI: true
APPLE_ID: ${{ secrets.APPLE_ID}}
TEAM_ID: ${{ secrets.TEAM_ID}}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS}}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS}}
CSC_FOR_PULL_REQUEST: true

- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: mac-build
path: 'dist/DeFi Wallet-${{ env.PACKAGE_VERSION}}.dmg'

build_windows_version:
runs-on: windows-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: install dependencies
run: npm cache clean --force && npm run init
Expand All @@ -80,7 +81,7 @@ jobs:
run: npm run build:win
shell: powershell

- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: win-build
path: 'dist/DeFi Wallet Setup ${{ env.PACKAGE_VERSION}}.exe'
43 changes: 22 additions & 21 deletions .github/workflows/release-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
publish_linux_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: install dependencies
run: npm cache clean --force && npm run init
Expand All @@ -32,14 +32,14 @@ jobs:
- publish_linux_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: Fetch Release Asset
uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
Expand Down Expand Up @@ -68,11 +68,11 @@ jobs:
publish_mac_version:
runs-on: macos-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: install dependencies
run: npm cache clean --force && npm run init
Expand All @@ -88,6 +88,7 @@ jobs:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
CI: true
APPLE_ID: ${{ secrets.APPLE_ID}}
TEAM_ID: ${{ secrets.TEAM_ID}}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS}}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS}}

Expand All @@ -96,14 +97,14 @@ jobs:
- publish_mac_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: Fetch Release Asset
uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
Expand Down Expand Up @@ -132,11 +133,11 @@ jobs:
publish_windows_version:
runs-on: windows-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: install dependencies
run: npm cache clean --force && npm run init
Expand All @@ -154,14 +155,14 @@ jobs:
- publish_windows_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
uses: nyaa8/package-version@05847b5b2b4e8cefeca8d50ee5940a6445a5773a

- name: Fetch Release Asset
uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c
env:
Expand Down
6 changes: 4 additions & 2 deletions electron-app/assets/notarize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { notarize } = require('electron-notarize');
const { notarize } = require('@electron/notarize');
const { build } = require('../../package.json');

exports.default = async function notarizeMacOS(context) {
Expand All @@ -22,9 +22,11 @@ exports.default = async function notarizeMacOS(context) {
const appName = context.packager.appInfo.productFilename;

await notarize({
appBundleId: build.appId,
tool: 'notarytool',
// appBundleId: build.appId,
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
teamId: process.env.TEAM_ID,
appleIdPassword: process.env.APPLE_ID_PASS,
});
};
Loading

0 comments on commit 2e04597

Please sign in to comment.