From a7d00b4106ed913c595670fbed909a979bf05841 Mon Sep 17 00:00:00 2001 From: krispyking24 <77263183+krispyking24@users.noreply.github.com> Date: Mon, 5 Aug 2024 21:25:44 +1000 Subject: [PATCH] Update auto release.yml --- .github/workflows/auto release.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto release.yml b/.github/workflows/auto release.yml index 7ef1f17..cdb8a91 100644 --- a/.github/workflows/auto release.yml +++ b/.github/workflows/auto release.yml @@ -1,6 +1,7 @@ name: AutoRelease on: + workflow_dispatch: # Allows manual triggering push: branches: [ master ] @@ -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 @@ -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 @@ -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 \ No newline at end of file