Skip to content

Commit

Permalink
fixed release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishnaaaa committed Oct 13, 2024
1 parent 8927276 commit 43d69d4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ jobs:
# Step 4: Create a new release
- name: 📦 Create Release
id: create_release
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { exec } = require('child_process');
const { promises: fs } = require('fs');
// Get the latest tag
Expand Down Expand Up @@ -63,9 +62,8 @@ jobs:
echo "jar_file_name=$jar_file" >> $GITHUB_ENV
- name: 🎁 Upload shadowJar to Release
uses: actions/upload-release-asset@v1
uses: Roang-zero1/github-upload-release-artifacts-action@v3
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.jar_file_name }}
asset_name: ${{ env.jar_file_name }} # Use the dynamic name here
asset_content_type: application/java-archive
file: build/libs/${{ env.jar_file_name }}.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 43d69d4

Please sign in to comment.