From 37659e4b77110570e68b65622d06d2e5706ad9a1 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Fri, 18 Dec 2020 08:42:53 +1100 Subject: [PATCH] try using native actions solution for creating releases --- .github/workflows/ci.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3e861c..6ffc442 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,13 +39,23 @@ jobs: with: path: Rebuilder/obj/Release/Rebuilder.exe - - - name: Upload to Releases - shell: bash - if: github.event_name == 'push' + + - name: Create Release + uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TRAVIS_REPO_SLUG: itsmattkc/LEGOIslandRebuilder - run: | - curl -fLOSs --retry 2 --retry-delay 60 https://github.com/probonopd/uploadtool/raw/master/upload.sh - ./upload.sh Rebuilder/obj/Release/Rebuilder.exe + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + 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