From a6e1efca777a28faa88598404b1f455b7f24b1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9zes=20Istv=C3=A1n?= <1valaki1asd@gmail.com> Date: Mon, 20 Nov 2023 16:48:45 +0100 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9eb548..95e1760 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,25 +23,11 @@ jobs: in: "src/" out: build icon: "icons" - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') 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: ./build/answerfinder_x64.exe - asset_name: answerfinder_x64.exe - asset_content_type: application/exe + files: | + build/answerfinder_x64.exe + build/answerfinder_x86.exe \ No newline at end of file