From 37a91fbc6033ac99185e58bff2bab52c9e530c48 Mon Sep 17 00:00:00 2001 From: PssbleTrngle Date: Sat, 1 Oct 2022 15:32:12 +0200 Subject: [PATCH] update workflow --- .github/workflows/release.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b46c6d..8271825 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,15 +33,10 @@ jobs: run: ./gradlew build - name: Upload to github releases - if: ${{ github.event_name == 'release' }} - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: build/libs/create_jetpack-${{ github.event.release.tag_name }}.jar - asset_name: create_jetpack-${{ github.event.release.tag_name }}.jar - asset_content_type: application/java-archive + files: build/libs/create_jetpack-${{ github.event.release.tag_name }}.jar - name: publish to github packages run: ./gradlew publish