Skip to content

Commit

Permalink
CI: try using magic passphrase [publish] to publish. sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Jul 9, 2022
1 parent 011560e commit 058ead9
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 99 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ env:
on:
push:
pull_request:
release:
types: [published] # publish a draft release to set github.event_name = 'release'
#release:
# types: [created]
#types: [published] # publish a draft release to set github.event_name = 'release'

jobs:
# This workflow contains a single job called "build"
Expand Down Expand Up @@ -42,8 +43,9 @@ jobs:
- name: Publish
continue-on-error: true
if: "contains(github.event.head_commit.message, '[publish]')"
#if: (github.event_name == 'release' && github.event.action == 'created')
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
#if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
run: |
npm run dist
Expand All @@ -61,3 +63,5 @@ jobs:
dist/Blink1Control2*tar.gz
dist/Blink1Control2*AppImage
dist/Blink1Control2*exe
dist/Blink1Control2*blockmap
dist/latest*yml
11 changes: 8 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ on:
push:
pull_request:
release:
types: [published] # publish a draft release to set github.event_name = 'release'
types: [created]
#types: [published] # publish a draft release to set github.event_name = 'release'

jobs:
# This workflow contains a single job called "build"
Expand Down Expand Up @@ -53,13 +54,14 @@ jobs:
npm run dist:draft
- name: Notarize
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
if: "contains(github.event.head_commit.message, '[publish]')"
run: |
npm run dist:nopub
- name: Publish
continue-on-error: true
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
if: "contains(github.event.head_commit.message, '[publish]')"
#if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
run: |
npm run dist
Expand All @@ -77,3 +79,6 @@ jobs:
dist/Blink1Control2*tar.gz
dist/Blink1Control2*AppImage
dist/Blink1Control2*exe
dist/Blink1Control2*blockmap
dist/latest*yml
8 changes: 6 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
push:
pull_request:
release:
types: [published] # publish a draft release to set github.event_name = 'release'
types: [created]
#types: [published] # publish a draft release to set github.event_name = 'release'

jobs:
# This workflow contains a single job called "build"
Expand Down Expand Up @@ -50,7 +51,8 @@ jobs:
- name: Publish
continue-on-error: true
if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
if: "contains(github.event.head_commit.message, '[publish]')"
#if: (github.event_name == 'release') # or values = 'push' or 'pull_request'
run: |
$env:CSC_LINK="${{ steps.write_file.outputs.filePath }}"
npm run dist
Expand All @@ -69,3 +71,5 @@ jobs:
dist/Blink1Control2*tar.gz
dist/Blink1Control2*AppImage
dist/Blink1Control2*exe
dist/Blink1Control2*blockmap
dist/latest*yml
Loading

0 comments on commit 058ead9

Please sign in to comment.