Skip to content

Commit

Permalink
Update auto release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
krispyking24 authored Aug 5, 2024
1 parent d23e00b commit a7d00b4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/auto release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: AutoRelease

on:
workflow_dispatch: # Allows manual triggering
push:
branches: [ master ]

Expand Down Expand Up @@ -28,11 +29,8 @@ jobs:

- name: Find and Extract .jar from ZIP
run: |
# Find the ZIP file
ZIP_FILE=$(find . -type f -name "*.zip")
echo "Found ZIP file: $ZIP_FILE"
# Extract the .jar file from the ZIP
unzip -j "$ZIP_FILE" "*.jar" -d ./extracted
ls -l ./extracted
Expand All @@ -42,8 +40,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: "latest" # You can use a fixed name or format
release_name: "Release latest"
body: |
Changes in this release:
- Add your changes here
Expand All @@ -58,4 +56,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./extracted/*.jar
asset_name: $(basename ./extracted/*.jar)
asset_content_type: application/java-archive
asset_content_type: application/java-archive

0 comments on commit a7d00b4

Please sign in to comment.