Skip to content

Commit

Permalink
Use 'gh release upload' to avoid actions/upload-release-asset#69
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxji committed Jan 25, 2021
1 parent fc7e379 commit 3d72c0a
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,38 @@ jobs:
mvn -version
mvn -B package -DskipTests
# Use 'gh release upload' to avoid https://github.com/actions/upload-release-asset/issues/69

# - name: Upload SemTK dist tarball
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: distribution/target/semtk-opensource-dist.tar.gz
# asset_name: semtk-opensource-${{ github.event.release.tag_name }}-dist.tar.gz
# asset_content_type: application/gzip
#
# - name: Upload SemTK fat standaloneExecutables jar
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar
# asset_name: semtk-opensource-${{ github.event.release.tag_name }}-standaloneExecutables.jar
# asset_content_type: application/gzip

- name: Upload SemTK dist tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: distribution/target/semtk-opensource-dist.tar.gz
asset_name: semtk-opensource-${{ github.event.release.tag_name }}-dist.tar.gz
asset_content_type: application/gzip
run: |
cp distribution/target/semtk-opensource-dist.tar.gz semtk-opensource-${{ github.event.release.tag_name }}-dist.tar.gz
gh release upload ${{ github.event.release.upload_url }} semtk-opensource-${{ github.event.release.tag_name }}-dist.tar.gz
- name: Upload SemTK fat standaloneExecutables jar
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar
asset_name: semtk-opensource-${{ github.event.release.tag_name }}-standaloneExecutables.jar
asset_content_type: application/gzip
run: |
cp standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar semtk-opensource-${{ github.event.release.tag_name }}-standaloneExecutables.jar
gh release upload ${{ github.event.release.upload_url }} semtk-opensource-${{ github.event.release.tag_name }}-standaloneExecutables.jar

0 comments on commit 3d72c0a

Please sign in to comment.