Skip to content

Commit

Permalink
Refactor release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tcnh committed Dec 3, 2023
1 parent 5ebaeae commit d9227bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
distribution: temurin
java-version: 11
- name: Unsnapshot version
run: mvn versions:set -DremoveSnapshot
run: mvn -f toolchain-fitnesse-plugin versions:set -DremoveSnapshot
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
directory: toolchain-fitnesse-plugin
server_id: staging
maven_profiles: release
gpg_private_key: ${{ secrets.gpg_private_key }}
Expand All @@ -39,7 +40,7 @@ jobs:
distribution: temurin
java-version: 11
- name: Unsnapshot version
run: mvn versions:set -DremoveSnapshot
run: mvn -f toolchain-fitnesse-plugin versions:set -DremoveSnapshot
- id: get-version
uses: JActions/[email protected]
- name: Create Release
Expand Down Expand Up @@ -70,7 +71,7 @@ jobs:
git config --global user.name "Praegus"
- name: Update version
run: |
mvn -B release:update-versions -DautoVersionSubmodules=true
mvn -B -f toolchain-fitnesse-plugin release:update-versions -DautoVersionSubmodules=true
git add pom.xml
git commit -m "Update version"
git push origin master

0 comments on commit d9227bd

Please sign in to comment.