Skip to content

Commit 8ef00ca

Browse files
authored
build: prepare v5.18.0 release (#1705)
* 5.18.0 * build: fix signing Signed-off-by: Adam Setch <[email protected]> * build: fix signing Signed-off-by: Adam Setch <[email protected]> * build: fix signing Signed-off-by: Adam Setch <[email protected]> * build: fix signing Signed-off-by: Adam Setch <[email protected]> * fix: macos code signing Signed-off-by: Adam Setch <[email protected]> * fix: macos code signing Signed-off-by: Adam Setch <[email protected]> * fix: macos code signing Signed-off-by: Adam Setch <[email protected]> * fix: macos code signing Signed-off-by: Adam Setch <[email protected]> * fix: macos code signing Signed-off-by: Adam Setch <[email protected]> * fix: macos code signing Signed-off-by: Adam Setch <[email protected]> --------- Signed-off-by: Adam Setch <[email protected]>
1 parent 3e3411f commit 8ef00ca

File tree

4 files changed

+125
-103
lines changed

4 files changed

+125
-103
lines changed

.github/workflows/ci.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@ on:
55
branches:
66
- main
77
pull_request:
8-
branches-ignore:
9-
- release/v*.*.* # macOS code-signing only works on `push` events, not `pull_request` events
8+
branches:
9+
- main
1010

1111
jobs:
12+
prepare: # macOS code-signing only works on `push` events and not `pull_request` events
13+
if: ${{ !startsWith(github.head_ref, 'release/v') }}
14+
name: Prepare CI
15+
runs-on: ubuntu-latest
16+
steps:
17+
- run: echo Running CI for branch ${{ github.head_ref }}
18+
1219
lint:
1320
name: Lint App
1421
uses: ./.github/workflows/lint.yml
22+
needs: prepare
1523

1624
tests:
1725
name: Tests
@@ -22,14 +30,4 @@ jobs:
2230
name: Build
2331
uses: ./.github/workflows/build.yml
2432
needs: tests
25-
if: ${{ !startsWith(github.head_ref, 'release/v') }}
26-
27-
release:
28-
name: Release
29-
uses: ./.github/workflows/release.yml
30-
needs: tests
31-
if: ${{ startsWith(github.head_ref, 'release/v') }}
32-
permissions:
33-
contents: write
34-
35-
33+
secrets: inherit

.github/workflows/publish.yml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Publish
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch: # For manually running release process to verify code-signing of artifacts
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release-macos:
12+
name: Publish macOS (electron-builder)
13+
runs-on: macos-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: pnpm/action-setup@v3
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: '.nvmrc'
21+
cache: 'pnpm'
22+
- run: pnpm install
23+
- run: pnpm build
24+
env:
25+
OAUTH_CLIENT_ID: ${{ secrets.oauth_client_id }}
26+
OAUTH_CLIENT_SECRET: ${{ secrets.oauth_client_secret }}
27+
- run: pnpm prepare:remove-source-maps
28+
- run: pnpm package:macos --publish onTagOrDraft
29+
env:
30+
APPLEID_USERNAME: ${{ secrets.appleid_username }}
31+
APPLEID_PASSWORD: ${{ secrets.appleid_password }}
32+
APPLEID_TEAM_ID: ${{ secrets.appleid_teamid }}
33+
CSC_LINK: ${{ secrets.mac_certs }}
34+
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
35+
GH_TOKEN: ${{ secrets.github_token }}
36+
NOTARIZE: true
37+
- uses: actions/upload-artifact@v4
38+
with:
39+
name: Gitify-release-mac
40+
path: dist/
41+
overwrite: true
42+
43+
release-windows:
44+
name: Publish Windows (electron-builder)
45+
runs-on: windows-latest
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: pnpm/action-setup@v3
50+
- uses: actions/setup-node@v4
51+
with:
52+
node-version-file: '.nvmrc'
53+
cache: 'pnpm'
54+
- run: pnpm install
55+
- run: pnpm build
56+
env:
57+
OAUTH_CLIENT_ID: ${{ secrets.oauth_client_id }}
58+
OAUTH_CLIENT_SECRET: ${{ secrets.oauth_client_secret }}
59+
- run: pnpm prepare:remove-source-maps
60+
- run: pnpm package:win --publish onTagOrDraft
61+
env:
62+
GH_TOKEN: ${{ secrets.github_token }}
63+
- uses: actions/upload-artifact@v4
64+
with:
65+
name: Gitify-release-win
66+
path: dist/
67+
overwrite: true
68+
69+
release-linux:
70+
name: Publish Linux (electron-builder)
71+
runs-on: ubuntu-latest
72+
73+
steps:
74+
- uses: actions/checkout@v4
75+
- uses: pnpm/action-setup@v3
76+
- uses: actions/setup-node@v4
77+
with:
78+
node-version-file: '.nvmrc'
79+
cache: 'pnpm'
80+
- run: pnpm install
81+
- run: pnpm build
82+
env:
83+
OAUTH_CLIENT_ID: ${{ secrets.oauth_client_id }}
84+
OAUTH_CLIENT_SECRET: ${{ secrets.oauth_client_secret }}
85+
- run: pnpm prepare:remove-source-maps
86+
- run: pnpm package:linux --publish onTagOrDraft
87+
env:
88+
GH_TOKEN: ${{ secrets.github_token }}
89+
- uses: actions/upload-artifact@v4
90+
with:
91+
name: Gitify-release-linux
92+
path: dist/
93+
overwrite: true

.github/workflows/release.yml

+20-89
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,24 @@
11
name: Release
22

3-
on:
4-
workflow_call:
5-
workflow_dispatch: # For manually running release process to verify code-signing of artifacts
6-
7-
permissions:
8-
contents: write
3+
on:
4+
push:
5+
branches:
6+
- release/v*.*.* # macOS code-signing only works on `push` events and not `pull_request` events
97

108
jobs:
11-
release-macos:
12-
name: Publish macOS (electron-builder)
13-
runs-on: macos-latest
14-
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: pnpm/action-setup@v3
18-
- uses: actions/setup-node@v4
19-
with:
20-
node-version-file: '.nvmrc'
21-
cache: 'pnpm'
22-
- run: pnpm install
23-
- run: pnpm build
24-
env:
25-
OAUTH_CLIENT_ID: ${{ secrets.oauth_client_id }}
26-
OAUTH_CLIENT_SECRET: ${{ secrets.oauth_client_secret }}
27-
- run: pnpm prepare:remove-source-maps
28-
- run: pnpm package:macos --publish onTagOrDraft
29-
env:
30-
APPLEID_USERNAME: ${{ secrets.appleid_username }}
31-
APPLEID_PASSWORD: ${{ secrets.appleid_password }}
32-
APPLEID_TEAM_ID: ${{ secrets.appleid_teamid }}
33-
CSC_LINK: ${{ secrets.mac_certs }}
34-
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
35-
GH_TOKEN: ${{ secrets.github_token }}
36-
NOTARIZE: true
37-
- uses: actions/upload-artifact@v4
38-
with:
39-
name: Gitify-release-mac
40-
path: dist/
41-
overwrite: true
42-
43-
release-windows:
44-
name: Publish Windows (electron-builder)
45-
runs-on: windows-latest
46-
47-
steps:
48-
- uses: actions/checkout@v4
49-
- uses: pnpm/action-setup@v3
50-
- uses: actions/setup-node@v4
51-
with:
52-
node-version-file: '.nvmrc'
53-
cache: 'pnpm'
54-
- run: pnpm install
55-
- run: pnpm build
56-
env:
57-
OAUTH_CLIENT_ID: ${{ secrets.oauth_client_id }}
58-
OAUTH_CLIENT_SECRET: ${{ secrets.oauth_client_secret }}
59-
- run: pnpm prepare:remove-source-maps
60-
- run: pnpm package:win --publish onTagOrDraft
61-
env:
62-
GH_TOKEN: ${{ secrets.github_token }}
63-
- uses: actions/upload-artifact@v4
64-
with:
65-
name: Gitify-release-win
66-
path: dist/
67-
overwrite: true
68-
69-
release-linux:
70-
name: Publish Linux (electron-builder)
71-
runs-on: ubuntu-latest
72-
73-
steps:
74-
- uses: actions/checkout@v4
75-
- uses: pnpm/action-setup@v3
76-
- uses: actions/setup-node@v4
77-
with:
78-
node-version-file: '.nvmrc'
79-
cache: 'pnpm'
80-
- run: pnpm install
81-
- run: pnpm build
82-
env:
83-
OAUTH_CLIENT_ID: ${{ secrets.oauth_client_id }}
84-
OAUTH_CLIENT_SECRET: ${{ secrets.oauth_client_secret }}
85-
- run: pnpm prepare:remove-source-maps
86-
- run: pnpm package:linux --publish onTagOrDraft
87-
env:
88-
GH_TOKEN: ${{ secrets.github_token }}
89-
- uses: actions/upload-artifact@v4
90-
with:
91-
name: Gitify-release-linux
92-
path: dist/
93-
overwrite: true
9+
lint:
10+
name: Lint App
11+
uses: ./.github/workflows/lint.yml
12+
13+
tests:
14+
name: Tests
15+
uses: ./.github/workflows/test.yml
16+
needs: lint
17+
18+
release:
19+
name: Publish
20+
uses: ./.github/workflows/publish.yml
21+
needs: tests
22+
secrets: inherit
23+
permissions:
24+
contents: write

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitify",
3-
"version": "5.17.0",
3+
"version": "5.18.0",
44
"description": "GitHub notifications on your menu bar.",
55
"main": "build/main.js",
66
"scripts": {

0 commit comments

Comments
 (0)