Skip to content

Commit e24f24d

Browse files
committed
Adding ability to skip electron publish
1 parent 992eb55 commit e24f24d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/publish-desktop.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,26 @@ on:
77
publish_type:
88
description: 'Publish Options'
99
required: true
10-
default: 'Initial Publish'
10+
default: 'Publish'
1111
type: choice
1212
options:
13-
- Initial Publish
14-
- Republish
13+
- Publish
1514
- Dry Run
1615
version:
1716
description: 'Version to publish (default: latest desktop release)'
1817
required: true
1918
type: string
2019
default: latest
21-
rollout_percentage:
22-
description: 'Staged Rollout Percentage'
20+
electron_rollout_percentage:
21+
description: 'Staged Rollout Percentage for Electron'
2322
required: true
2423
default: '10'
2524
type: string
25+
electron_publish:
26+
description: 'Publish Electron blob to AWS'
27+
required: true
28+
default: true
29+
type: boolean
2630
snap_publish:
2731
description: 'Publish to Snap store'
2832
required: true
@@ -107,6 +111,7 @@ jobs:
107111
name: Electron blob publish
108112
runs-on: ubuntu-22.04
109113
needs: setup
114+
if: inputs.electron_publish
110115
env:
111116
_PKG_VERSION: ${{ needs.setup.outputs.release-version }}
112117
_RELEASE_TAG: ${{ needs.setup.outputs.tag-name }}
@@ -137,7 +142,7 @@ jobs:
137142
- name: Set staged rollout percentage
138143
env:
139144
RELEASE_CHANNEL: ${{ needs.setup.outputs.release-channel }}
140-
ROLLOUT_PCT: ${{ inputs.rollout_percentage }}
145+
ROLLOUT_PCT: ${{ inputs.electron_rollout_percentage }}
141146
run: |
142147
echo "stagingPercentage: ${ROLLOUT_PCT}" >> apps/desktop/artifacts/${RELEASE_CHANNEL}.yml
143148
echo "stagingPercentage: ${ROLLOUT_PCT}" >> apps/desktop/artifacts/${RELEASE_CHANNEL}-linux.yml

0 commit comments

Comments
 (0)