1
- name : Auto Release
1
+ name : Release
2
2
3
3
on :
4
- workflow_dispatch :
4
+ workflow_dispatch : # Allow manual triggering
5
5
push :
6
6
tags :
7
- - ' v*' # Change 'main' to your default branch name
7
+ - ' v*' # Trigger only on tags starting with 'v'
8
+
9
+ env :
10
+ MVN_JAR_URL : " https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/${{ github.ref_name }}"
11
+ PYPI_PACKAGE_URL : " https://pypi.org/project/spark-rapids-user-tools/"
8
12
9
13
jobs :
10
14
build :
@@ -14,12 +18,12 @@ jobs:
14
18
- name : Checkout code
15
19
uses : actions/checkout@v2
16
20
17
- - name : " Build Changelog"
21
+ - name : Build Changelog
18
22
id : build_changelog
19
23
uses : mikepenz/release-changelog-builder-action@v4
20
24
with :
21
- configuration : " .github/workflows/configuration.json"
22
- outputFile : " CHANGELOG.md"
25
+ configuration : " .github/workflows/configuration.json" # Configuration file for the changelog builder (optional)
26
+ outputFile : " CHANGELOG.md" # Specify the output file for the generated changelog
23
27
env :
24
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
29
@@ -29,16 +33,14 @@ jobs:
29
33
env :
30
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
35
with :
32
- tag_name : ${{ github.ref }} # Specify the version number you want to release
33
- release_name : ${{ github.ref }}
36
+ tag_name : ${{ github.ref }} # Use the version number from the tag
37
+ release_name : ${{ github.ref }} # Use the version number as the release name
34
38
body : |
35
39
## Packages
36
40
37
- - mvn jar file: https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/ ${{ github.ref_name }}/
38
- - pypi package: https://pypi.org/project/spark-rapids-user-tools/
41
+ - mvn jar file: ${{ env.MVN_JAR_URL }}
42
+ - pypi package: ${{ env.PYPI_PACKAGE_URL }}
39
43
40
44
## Changes
41
- ${{steps.build_changelog.outputs.changelog}}
45
+ ${{ steps.build_changelog.outputs.changelog }}
42
46
draft : false
43
-
44
- # Add steps here to upload any additional artifacts (e.g., mvn jar, pypi package, etc.) if required.
0 commit comments