From d11f7ab24e75a1942ec68d41251a27a8bbc468ab Mon Sep 17 00:00:00 2001 From: Thomas Roque Date: Mon, 1 May 2023 14:15:37 +0200 Subject: [PATCH] Create line for artifact treatment --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cd0f9ea..7021300b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,3 +36,25 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run dist shell: bash + + - 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: true + 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 }} + asset_path: ./dist/*.exe + asset_name: BTCV-Launcher.exe + asset_content_type: application/x-msdownload diff --git a/.gitignore b/.gitignore index 30ce193d..c48e4c9b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ /.vscode/ /target/ /logs/ -/dist/ \ No newline at end of file +/dist/ +/.idea/workspace.xml