Skip to content

Commit 9ff6b8e

Browse files
committed
Improve release yml file
Signed-off-by: Partho Sarthi <[email protected]>
1 parent 2037f89 commit 9ff6b8e

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/release.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
name: Auto Release
1+
name: Release
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch: # Allow manual triggering
55
push:
66
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/"
812

913
jobs:
1014
build:
@@ -14,12 +18,12 @@ jobs:
1418
- name: Checkout code
1519
uses: actions/checkout@v2
1620

17-
- name: "Build Changelog"
21+
- name: Build Changelog
1822
id: build_changelog
1923
uses: mikepenz/release-changelog-builder-action@v4
2024
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
2327
env:
2428
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2529

@@ -29,16 +33,14 @@ jobs:
2933
env:
3034
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3135
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
3438
body: |
3539
## Packages
3640
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 }}
3943
4044
## Changes
41-
${{steps.build_changelog.outputs.changelog}}
45+
${{ steps.build_changelog.outputs.changelog }}
4246
draft: false
43-
44-
# Add steps here to upload any additional artifacts (e.g., mvn jar, pypi package, etc.) if required.

0 commit comments

Comments
 (0)