Skip to content

Commit b0955b7

Browse files
authored
Update maven-publish.yml
added version number to the plugin artifact
1 parent 090e810 commit b0955b7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/maven-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ jobs:
2828
- name: Build with Maven
2929
run: mvn -B package --file pom.xml
3030

31+
- name: Rename plugin with version number
32+
run: mv ./target/matlab-plugin.zip ./target/matlab-teamcity-plugin-${{ github.event.release.tag_name }}.zip
33+
3134
- name: Upload Release Asset New
3235
id: upload-release-asset
3336
uses: actions/upload-release-asset@v1
3437
env:
3538
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3639
with:
3740
upload_url: https://uploads.github.com/repos/mathworks/matlab-teamcity-plugin/releases/${{ github.event.release.id }}/assets{?name,label}
38-
asset_path: ./target/matlab-plugin.zip
39-
asset_name: matlab-plugin.zip
41+
asset_path: ./target/matlab-teamcity-plugin-${{ github.event.release.tag_name }}.zip
42+
asset_name: matlab-teamcity-plugin-${{ github.event.release.tag_name }}.zip
4043
asset_content_type: application/zip
4144
env:
42-
GITHUB_TOKEN: ${{ github.token }}
45+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)