Skip to content

Commit

Permalink
correct release id
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Dec 4, 2020
1 parent 64d6b61 commit 81ec52b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
version=$(echo ${{ github.ref }} | cut -d '/' -f3 | cut -c 2-)
echo "::set-output name=version::$version"
echo "version is '$version'"
rel_id=$(curl -sL https://api.github.com/repos/${{github.repository}}/releases/latest?access_token=${{ secrets.GITHUB_TOKEN }} | jq -r '.id')
echo ::set-output name=rel_id::$rel_id
echo "rel_id is '$rel_id'"
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v1
Expand Down Expand Up @@ -63,7 +66,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.get-id.outputs.tag }}/assets?name=${{ steps.get-id.outputs.id }}.jar
upload_url: https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.get-id.outputs.rel_id }}/assets?name=${{ steps.get-id.outputs.id }}.jar
asset_path: target/${{ steps.get-id.outputs.id }}-openfire-plugin-assembly.jar
asset_name: ${{ steps.get-id.outputs.id }}.jar
asset_content_type: application/java-archive

0 comments on commit 81ec52b

Please sign in to comment.