-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
64 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
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 |
---|---|---|
|
@@ -6,9 +6,9 @@ on: | |
push: | ||
branches: | ||
## live | ||
- master | ||
- main | ||
## debug | ||
- development | ||
# - development | ||
|
||
jobs: | ||
release: | ||
|
@@ -21,9 +21,9 @@ jobs: | |
lfs: false | ||
fetch-depth: '0' | ||
## live | ||
#ref: 'master' | ||
ref: 'main' | ||
## debug | ||
ref: 'development' | ||
# ref: 'development' | ||
# - name: Checkout LFS objects | ||
# run: git lfs checkout | ||
|
||
|
@@ -70,20 +70,20 @@ jobs: | |
git commit -a -m "release version ${MAVEN_PROJECT_VERSION}" | ||
git tag v${MAVEN_PROJECT_VERSION} | ||
- name: Push changes at pom.xml to master | ||
- name: Push changes at pom.xml to main | ||
# 'github-push-action' does not work on 'macos-latest': https://github.com/ad-m/github-push-action/issues/51 | ||
#uses: ad-m/[email protected] | ||
#with: | ||
# tags: true | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master --follow-tags --tags | ||
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:main --follow-tags --tags | ||
- name: Increment maven project version on development branch | ||
run: | | ||
git fetch --prune | ||
git checkout -f development | ||
git merge --no-ff master | ||
git merge --no-ff main | ||
mvn -B ${MAVEN_VERSIONS_PLUGIN}:set -DnextSnapshot=true -DgenerateBackupPoms=false | ||
git commit -a -m "prepare for next development iteration" | ||
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:development | ||
|
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