Skip to content

Commit

Permalink
Fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
SemyonSinchenko committed Sep 20, 2024
1 parent dc9ffd5 commit 550b910
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,24 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
uses: snok/install-poetry@v1

- name: Create Release tag
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
id: generate_tag
with:
draft: false
prerelease: false

- name: Build server with Maven
if: startsWith(github.ref, 'refs/tags/')
run: mvn versions:set -DnewVersion=${{ steps.generate_tag.outputs.id }} -DskipTests --no-transfer-progress clean package
run: mvn versions:set -DnewVersion=${{ github.ref_name }} -DskipTests --no-transfer-progress clean package
working-directory: tsumugi-server

- name: Build client with poetry
if: startsWith(github.ref, 'refs/tags/')
run: |
poetry version ${{ steps.generate_tag.output.id }}
poetry version ${{ github.ref_name }}
poetry build --format sdist
working-directory: tsumugi-python

- name: Upload assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
append_body: true
draft: false
prerelease: false
files: |
tsumugi-server/target/tsumugi-server-*.jar
tsumugi-python/dist/tsumugi-*.tar.gz
Expand Down

0 comments on commit 550b910

Please sign in to comment.