Skip to content

Commit

Permalink
build: allow release from a different branch
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon committed Jan 8, 2024
1 parent 1ba7a7b commit bef2346
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
- 'true'
- 'false'
default: 'false'
branch:
description: 'Branch to release from'
required: false
default: 'main'
type: string

jobs:
# Prepare and publish the plugin to JetBrains Marketplace repository
Expand All @@ -28,6 +33,8 @@ jobs:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

# Validate Wrapper before running build
- name: validate Gradle Wrapper
Expand Down Expand Up @@ -84,7 +91,7 @@ jobs:
NEW_VERSION=$(./increment_version.sh)
echo "Set $NEW_VERSION in gradle.properties"
git commit -sam "chore(skip-release): set version to $NEW_VERSION"
git push origin main
git push origin ${{ inputs.branch }}
- name: Simple conventional changelog
uses: lstocchi/simple-conventional-changelog@13071c09073f5deddf03d44d9af6a8b0f81ef227 #0.0.11
Expand Down

0 comments on commit bef2346

Please sign in to comment.