diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0db3100..7f38e3f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -46,11 +46,15 @@ jobs: cp resourcepack/mcide.zip upload cp target/mcide*.jar upload + - name: Get realease version from pom.xml + id: get-version + uses: jactions/maven-version@v1.0.0 + - name: Upload files to a GitHub release uses: svenstaro/upload-release-action@2.2.1 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: upload/* - tag: latest + tag: ${{ steps.get-version.outputs.version }} overwrite: true - file_glob: true \ No newline at end of file + file_glob: true