Release Pomodoro v1.0 #25
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Amore Release | |
| run-name: Release Pomodoro ${{ github.ref_type == 'tag' && github.ref_name || format('({0})', github.event_name == 'workflow_dispatch' && inputs.channel || 'alpha') }} | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| workflow_dispatch: | |
| inputs: | |
| channel: | |
| type: choice | |
| options: [stable, beta, alpha] | |
| default: alpha | |
| description: Release channel (empty = no channel) | |
| build-number: | |
| type: string | |
| default: auto | |
| description: Build number ("auto", "timestamp", or an integer) | |
| marketing-version: | |
| type: string | |
| default: "" | |
| description: Override marketing version (e.g. 1.2.3) | |
| concurrency: | |
| group: amore-release | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Push to main -> alpha. Tag vX.Y.Z-beta -> beta. Tag vX.Y.Z -> stable. | |
| - name: Resolve channel and version | |
| id: ctx | |
| env: | |
| EVENT: ${{ github.event_name }} | |
| REF_TYPE: ${{ github.ref_type }} | |
| REF_NAME: ${{ github.ref_name }} | |
| INPUT_CHANNEL: ${{ inputs.channel }} | |
| run: | | |
| set -euo pipefail | |
| channel="" | |
| if [ "$EVENT" = "workflow_dispatch" ]; then | |
| channel="$INPUT_CHANNEL" | |
| elif [ "$REF_TYPE" = "branch" ]; then | |
| channel="alpha" | |
| elif [ "$REF_TYPE" = "tag" ]; then | |
| case "$REF_NAME" in *beta*) channel="beta" ;; esac | |
| fi | |
| echo "channel=$channel" >> "$GITHUB_OUTPUT" | |
| echo "Resolved channel='${channel:-stable}'" | |
| - uses: AmoreComputer/release-action@main | |
| with: | |
| scheme: Pomodoro | |
| channel: ${{ steps.ctx.outputs.channel }} | |
| build-number: ${{ inputs.build-number || 'auto' }} | |
| marketing-version: ${{ inputs.marketing-version }} | |
| codesign-identity: ${{ secrets.CODESIGN_IDENTITY }} | |
| dev-id-cert-p12: ${{ secrets.DEV_ID_CERT_P12 }} | |
| dev-id-cert-password: ${{ secrets.DEV_ID_CERT_PASSWORD }} | |
| sparkle-private-key: ${{ secrets.SPARKLE_PRIVATE_KEY }} | |
| asc-api-key-id: ${{ secrets.ASC_API_KEY_ID }} | |
| asc-api-issuer: ${{ secrets.ASC_API_ISSUER }} | |
| asc-api-key: ${{ secrets.ASC_API_KEY }} | |
| amore-token: ${{ secrets.AMORE_TOKEN }} |