Skip to content

Commit

Permalink
minor tweaks to release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Nov 24, 2023
1 parent cd9261e commit 1707309
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Set git identity
run: |
git config user.name ci-bot
git config user.email ci-bot@andreatp.io
git config user.email ci-bot@kiota.io
- name: Release the new version
run: |
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${{ github.event.inputs.release-version }}
Expand All @@ -47,6 +47,8 @@ jobs:
git push
git tag ${{ github.event.inputs.release-version }}
git push origin ${{ github.event.inputs.release-version }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish
run : mvn --batch-mode clean deploy -Prelease -DskipTests=true
env:
Expand All @@ -57,9 +59,12 @@ jobs:
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
tag_name: ${{ github.event.inputs.release-version }}
token: ${{secrets.GITHUB_TOKEN}}
- name: Back to Snapshot
run: |
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=999-SNAPSHOT
git add .
git commit -m "Snapshot version update"
git push
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 1707309

Please sign in to comment.