Skip to content

Commit

Permalink
Improve release yml file
Browse files Browse the repository at this point in the history
Signed-off-by: Partho Sarthi <[email protected]>
  • Loading branch information
parthosa committed Aug 7, 2023
1 parent 2037f89 commit 9ff6b8e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Auto Release
name: Release

on:
workflow_dispatch:
workflow_dispatch: # Allow manual triggering
push:
tags:
- 'v*' # Change 'main' to your default branch name
- 'v*' # Trigger only on tags starting with 'v'

env:
MVN_JAR_URL: "https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/${{ github.ref_name }}"
PYPI_PACKAGE_URL: "https://pypi.org/project/spark-rapids-user-tools/"

jobs:
build:
Expand All @@ -14,12 +18,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: "Build Changelog"
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: ".github/workflows/configuration.json"
outputFile: "CHANGELOG.md"
configuration: ".github/workflows/configuration.json" # Configuration file for the changelog builder (optional)
outputFile: "CHANGELOG.md" # Specify the output file for the generated changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -29,16 +33,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }} # Specify the version number you want to release
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }} # Use the version number from the tag
release_name: ${{ github.ref }} # Use the version number as the release name
body: |
## Packages
- mvn jar file: https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/${{ github.ref_name }}/
- pypi package: https://pypi.org/project/spark-rapids-user-tools/
- mvn jar file: ${{ env.MVN_JAR_URL }}
- pypi package: ${{ env.PYPI_PACKAGE_URL }}
## Changes
${{steps.build_changelog.outputs.changelog}}
${{ steps.build_changelog.outputs.changelog }}
draft: false

# Add steps here to upload any additional artifacts (e.g., mvn jar, pypi package, etc.) if required.

0 comments on commit 9ff6b8e

Please sign in to comment.