Skip to content

Commit

Permalink
Merge pull request #2850 from Multiverse/dumptruckman/fix_release_6
Browse files Browse the repository at this point in the history
Massage the strange release upload url.
  • Loading branch information
dumptruckman authored Feb 20, 2023
2 parents e721223 + ae578f9 commit a168e5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ jobs:
GITHUB_VERSION: ${{ steps.get_release.outputs.tag_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Fix the upload URL
run: |
UPLOAD_URL=${{ steps.get_release.outputs.upload_url }}
UPLOAD_URL=${UPLOAD_URL//\{?name,label\}}
echo "UPLOAD_URL=${UPLOAD_URL}" >> $GITHUB_ENV
- name: Upload release artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
upload_url: ${{ env.UPLOAD_URL }}
asset_path: 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

0 comments on commit a168e5c

Please sign in to comment.