mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2024-11-23 15:48:03 -05:00
try using native actions solution for creating releases
This commit is contained in:
parent
034d5758d3
commit
37659e4b77
1 changed files with 18 additions and 8 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -40,12 +40,22 @@ jobs:
|
||||||
path:
|
path:
|
||||||
Rebuilder/obj/Release/Rebuilder.exe
|
Rebuilder/obj/Release/Rebuilder.exe
|
||||||
|
|
||||||
- name: Upload to Releases
|
- name: Create Release
|
||||||
shell: bash
|
uses: actions/create-release@v1
|
||||||
if: github.event_name == 'push'
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TRAVIS_REPO_SLUG: itsmattkc/LEGOIslandRebuilder
|
with:
|
||||||
run: |
|
tag_name: ${{ github.ref }}
|
||||||
curl -fLOSs --retry 2 --retry-delay 60 https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
release_name: Release ${{ github.ref }}
|
||||||
./upload.sh Rebuilder/obj/Release/Rebuilder.exe
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
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
|
||||||
|
asset_path: Rebuilder/obj/Release/Rebuilder.exe
|
||||||
|
asset_name: Rebuilder.exe
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
Loading…
Reference in a new issue