1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-22 02:21:34 +01:00

[BRE-563] Adding ability to skip electron publish (#12920)

This commit is contained in:
Andy Pixley 2025-01-16 16:17:29 -05:00 committed by GitHub
parent ea052b9e07
commit 65b393e3ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,22 +7,26 @@ on:
publish_type:
description: 'Publish Options'
required: true
default: 'Initial Publish'
default: 'Publish'
type: choice
options:
- Initial Publish
- Republish
- Publish
- Dry Run
version:
description: 'Version to publish (default: latest desktop release)'
required: true
type: string
default: latest
rollout_percentage:
description: 'Staged Rollout Percentage'
electron_rollout_percentage:
description: 'Staged Rollout Percentage for Electron'
required: true
default: '10'
type: string
electron_publish:
description: 'Publish Electron blob to AWS'
required: true
default: true
type: boolean
snap_publish:
description: 'Publish to Snap store'
required: true
@ -107,6 +111,7 @@ jobs:
name: Electron blob publish
runs-on: ubuntu-22.04
needs: setup
if: inputs.electron_publish
env:
_PKG_VERSION: ${{ needs.setup.outputs.release_version }}
_RELEASE_TAG: ${{ needs.setup.outputs.tag_name }}
@ -137,7 +142,7 @@ jobs:
- name: Set staged rollout percentage
env:
RELEASE_CHANNEL: ${{ needs.setup.outputs.release_channel }}
ROLLOUT_PCT: ${{ inputs.rollout_percentage }}
ROLLOUT_PCT: ${{ inputs.electron_rollout_percentage }}
run: |
echo "stagingPercentage: ${ROLLOUT_PCT}" >> apps/desktop/artifacts/${RELEASE_CHANNEL}.yml
echo "stagingPercentage: ${ROLLOUT_PCT}" >> apps/desktop/artifacts/${RELEASE_CHANNEL}-linux.yml