Skip to content

Commit 7362e54

Browse files
authored
Merge pull request #2851 from Multiverse/dumptruckman/fix_release_7
Use new action for uploading artifact.
2 parents a168e5c + 8a46d70 commit 7362e54

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/publish.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,10 @@ jobs:
3636
GITHUB_VERSION: ${{ steps.get_release.outputs.tag_name }}
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838

39-
- name: Fix the upload URL
40-
run: |
41-
UPLOAD_URL=${{ steps.get_release.outputs.upload_url }}
42-
UPLOAD_URL=${UPLOAD_URL//\{?name,label\}}
43-
echo "UPLOAD_URL=${UPLOAD_URL}" >> $GITHUB_ENV
44-
4539
- name: Upload release artifact
46-
uses: actions/upload-release-asset@v1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
uses: shogo82148/actions-upload-release-asset@v1
4941
with:
50-
upload_url: ${{ env.UPLOAD_URL }}
42+
upload_url: ${{ steps.get_release.outputs.upload_url }}
5143
asset_path: build/libs/multiverse-core-${{ steps.get_release.outputs.tag_name }}.jar
5244
asset_name: multiverse-core-${{ steps.get_release.outputs.tag_name }}.jar
5345
asset_content_type: application/java-archive

0 commit comments

Comments
 (0)