File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 7
7
- ' v*' # Trigger only on tags starting with 'v'
8
8
9
9
env :
10
- MAVEN_URL : " https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/${{ github.ref_name.replace('v', '') }} "
10
+ MAVEN_URL : " https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/"
11
11
PYPI_URL : " https://pypi.org/project/spark-rapids-user-tools/"
12
12
13
13
jobs :
45
45
git commit -m "Update changelogs"
46
46
git push origin main
47
47
48
+ - name : Set Version Number
49
+ id : set_version
50
+ run : |
51
+ # Extract version number from the tag (e.g., 'v1.2.3' -> '1.2.3')
52
+ VERSION=${{ github.ref_name }}
53
+ VERSION=${VERSION#v} # Remove 'v' prefix
54
+
55
+ # Set the extracted version as an environment variable
56
+ echo "VERSION=${VERSION}" >> $GITHUB_ENV
57
+
48
58
- name : Create Release
49
59
id : create_release
50
60
uses : actions/create-release@v1
56
66
body : |
57
67
## Packages
58
68
59
- - Maven Release: ${{ env.MAVEN_URL }}
69
+ - Maven Release: ${{ env.MAVEN_URL }}/${{ env.VERSION }}
60
70
- PyPI Package: ${{ env.PYPI_URL }}
61
71
62
72
## Changes
You can’t perform that action at this time.
0 commit comments