-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Improve the release pipeline (#601)
- Loading branch information
Showing
1 changed file
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,10 @@ jobs: | |
fetch-depth: 0 | ||
ref: v${{ github.event.inputs.javaVersion }} | ||
|
||
- name: Delete release branch (if exists) | ||
continue-on-error: true | ||
run: git push -d origin $RELEASE_BRANCH_NAME | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
|
@@ -108,7 +112,6 @@ jobs: | |
git merge --squash $RELEASE_BRANCH_NAME | ||
git commit -m "build: release version ${{ github.event.inputs.javaVersion }}" | ||
git push origin $RELEASE_BRANCH_NAME-bump | ||
git branch -D $RELEASE_BRANCH_NAME | ||
gh pr create --reviewer triceo --base ${{ github.event.inputs.stableBranch }} --head $RELEASE_BRANCH_NAME-bump --title "build: release version ${{ github.event.inputs.javaVersion }}" --body-file .github/workflows/release-pr-body.md | ||
- name: Put back the 999-SNAPSHOT version on the release branch | ||
|
@@ -121,4 +124,24 @@ jobs: | |
export NEW_PYTHON_VERSION="999-dev0" | ||
.github/scripts/change_versions.sh | ||
git commit -am "build: move back to version $NEW_VERSION" | ||
git push origin $RELEASE_BRANCH_NAME | ||
git push origin $RELEASE_BRANCH_NAME | ||
- name: Delete version branch (if exists) | ||
continue-on-error: true | ||
run: | | ||
java_version=${{ github.event.inputs.javaVersion }} | ||
version="${java_version%.*}.x" | ||
git push -d origin $version | ||
- name: Update release branch | ||
working-directory: ./timefold-quickstarts | ||
shell: bash | ||
run: | | ||
java_version=${{ github.event.inputs.javaVersion }} | ||
version="${java_version%.*}.x" | ||
git config user.name "Timefold Release Bot" | ||
git config user.email "[email protected]" | ||
git checkout $RELEASE_BRANCH_NAME | ||
git branch -m $RELEASE_BRANCH_NAME $version | ||
git push origin -u $version | ||
git push -d origin $RELEASE_BRANCH_NAME |