From e936a6271f99d3f872e5ffd75d3a5e521d4d9f1d Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Mon, 20 Feb 2023 14:57:01 +0800 Subject: [PATCH] Fix upload release artifact --- .github/workflows/publish.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8296cb15..baa2ec5a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,11 +43,9 @@ jobs: echo "UPLOAD_URL=${UPLOAD_URL}" >> $GITHUB_ENV - name: Upload release artifact - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: svenstaro/upload-release-action@v2 with: - upload_url: ${{ env.UPLOAD_URL }} - asset_path: build/libs/multiverse-core-${{ steps.get_release.outputs.tag_name }}.jar + repo_token: ${{ secrets.RELEASE_TOKEN }} + file: build/libs/multiverse-core-${{ steps.get_release.outputs.tag_name }}.jar asset_name: multiverse-core-${{ steps.get_release.outputs.tag_name }}.jar - asset_content_type: application/java-archive + tag: ${{ steps.get_release.outputs.tag_name }}