From be193f7fad3d1458f363512631a4d879c9947559 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:28:26 +0100 Subject: [PATCH] Update ci --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0532367..f9eb548 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,25 @@ jobs: in: "src/" out: build icon: "icons" - - name: Do domething with builded scripts - shell: pwsh - run: | - ls build + + - 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 }} + 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