Skip to content

split branch from build and publish #18

split branch from build and publish

split branch from build and publish #18

name: Pre-Release - Cut Release Branch and Publish Release Candidate
env:
SONATYPE_USERNAME: embrace-io
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_QA_USER: github
MAVEN_QA_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
mavenSigningKeyId: ${{ secrets.MAVEN_ANDROID_SIGNING_KEY }}
mavenSigningKeyRingFileEncoded: ${{ secrets.MAVEN_ANDROID_GPG_KEY }}
mavenSigningKeyPassword: ${{ secrets.MAVEN_ANDROID_SIGNING_PASSWORD }}
on:
workflow_dispatch:
inputs:
version_to_release:
description: 'Version to release. Specify <major.minor> only, without the patch number, e.g. 6.3. A new branch called "release/<version>" will be created where the release-specific changes will be committed.'
required: true
next_version:
description: 'Next version. Specify <major.minor>, e.g. 6.4 (Do NOT include -SNAPSHOT, will be added automatically)'
required: true
jobs:
baseline-profile:
name: Generate Baseline Profile
uses: ./.github/workflows/genereate-baseline-profile.yml@main

Check failure on line 25 in .github/workflows/pre-release-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pre-release-workflow.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
secrets: inherit
release-branch:
name: Create Release Branches
if: ${{ always() }}
needs: baseline-profile
uses: ./.github/workflows/rc-release-branch.yml@main
secrets: inherit
with:
version_to_release: ${{ github.event.inputs.version_to_release }}
next_version: ${{ github.event.inputs.next_version }}
release-candate:
name: Create Release Candidate
needs: release-branch
uses: ./.github/workflows/build-rc-workflow.yml@main
secrets: inherit
with:
version_of_rc: ${{ github.event.inputs.version_to_release }}