Skip to content

Commit

Permalink
Adding ability to skip electron publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pixman20 committed Jan 16, 2025
1 parent 992eb55 commit e24f24d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/publish-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e24f24d

Please sign in to comment.