Skip to content

Commit 011d7ad

Browse files
authored
Change release upload to different action
1 parent 1283ca1 commit 011d7ad

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

.github/workflows/gradle.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
name: Package
2323
path: build/libs/*.jar
24+
2425
release:
2526
runs-on: ubuntu-latest
2627
needs: build
@@ -29,24 +30,12 @@ jobs:
2930
uses: actions/download-artifact@v2
3031
with:
3132
path: buildfiles
32-
33+
3334
- name: Create Release
34-
uses: actions/create-release@v1
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
- uses: "marvinpinto/action-automatic-releases@latest"
3736
with:
38-
tag_name: ${{ github.sha }}
39-
release_name: Release ${{ github.sha }}
40-
draft: false
37+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
4138
prerelease: false
42-
43-
# - name: Upload Release Asset
44-
# id: upload-release-asset
45-
# uses: actions/upload-release-asset@v1
46-
# env:
47-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
# with:
49-
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
50-
# asset_path: ./my-artifact.zip
51-
# asset_name: my-artifact.zip
52-
# asset_content_type: application/zip
39+
files: |
40+
LICENSE.txt
41+
*.jar

0 commit comments

Comments
 (0)