1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00: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

View File

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