Skip to content

Commit 058ead9

Browse files
committed
CI: try using magic passphrase [publish] to publish. sigh
1 parent 011560e commit 058ead9

File tree

4 files changed

+111
-99
lines changed

4 files changed

+111
-99
lines changed

.github/workflows/linux.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ env:
88
on:
99
push:
1010
pull_request:
11-
release:
12-
types: [published] # publish a draft release to set github.event_name = 'release'
11+
#release:
12+
# types: [created]
13+
#types: [published] # publish a draft release to set github.event_name = 'release'
1314

1415
jobs:
1516
# This workflow contains a single job called "build"
@@ -42,8 +43,9 @@ jobs:
4243
4344
- name: Publish
4445
continue-on-error: true
46+
if: "contains(github.event.head_commit.message, '[publish]')"
4547
#if: (github.event_name == 'release' && github.event.action == 'created')
46-
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
48+
#if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
4749
run: |
4850
npm run dist
4951
@@ -61,3 +63,5 @@ jobs:
6163
dist/Blink1Control2*tar.gz
6264
dist/Blink1Control2*AppImage
6365
dist/Blink1Control2*exe
66+
dist/Blink1Control2*blockmap
67+
dist/latest*yml

.github/workflows/macos.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ on:
1616
push:
1717
pull_request:
1818
release:
19-
types: [published] # publish a draft release to set github.event_name = 'release'
19+
types: [created]
20+
#types: [published] # publish a draft release to set github.event_name = 'release'
2021

2122
jobs:
2223
# This workflow contains a single job called "build"
@@ -53,13 +54,14 @@ jobs:
5354
npm run dist:draft
5455
5556
- name: Notarize
56-
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
57+
if: "contains(github.event.head_commit.message, '[publish]')"
5758
run: |
5859
npm run dist:nopub
5960
6061
- name: Publish
6162
continue-on-error: true
62-
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
63+
if: "contains(github.event.head_commit.message, '[publish]')"
64+
#if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
6365
run: |
6466
npm run dist
6567
@@ -77,3 +79,6 @@ jobs:
7779
dist/Blink1Control2*tar.gz
7880
dist/Blink1Control2*AppImage
7981
dist/Blink1Control2*exe
82+
dist/Blink1Control2*blockmap
83+
dist/latest*yml
84+

.github/workflows/windows.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ on:
1212
push:
1313
pull_request:
1414
release:
15-
types: [published] # publish a draft release to set github.event_name = 'release'
15+
types: [created]
16+
#types: [published] # publish a draft release to set github.event_name = 'release'
1617

1718
jobs:
1819
# This workflow contains a single job called "build"
@@ -50,7 +51,8 @@ jobs:
5051
5152
- name: Publish
5253
continue-on-error: true
53-
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
54+
if: "contains(github.event.head_commit.message, '[publish]')"
55+
#if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
5456
run: |
5557
$env:CSC_LINK="${{ steps.write_file.outputs.filePath }}"
5658
npm run dist
@@ -69,3 +71,5 @@ jobs:
6971
dist/Blink1Control2*tar.gz
7072
dist/Blink1Control2*AppImage
7173
dist/Blink1Control2*exe
74+
dist/Blink1Control2*blockmap
75+
dist/latest*yml

0 commit comments

Comments
 (0)