From 56e274c9d93c77b1a899ed89663b94153105a8b7 Mon Sep 17 00:00:00 2001 From: c6 <31777460+c6-dev@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:18:08 +0400 Subject: [PATCH] add continuous release --- .github/workflows/msbuild.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index e7c762a..004cc8f 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -48,4 +48,33 @@ jobs: with: name: JohnnyGuitarNVSE-Debug-${{ env.artifact_timestamp }} path: | - Debug\johnnyguitar.dll \ No newline at end of file + Debug\johnnyguitar.dll + + - name: Create or Update Release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: continuous-${{ env.artifact_timestamp }} + release_name: "Continuous release" + draft: false + prerelease: true + body: | + Continuous build generated from the latest push to development branch. + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload Release Artifact (Release) + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: Release/johnnyguitar.dll + asset_name: johnnyguitar-Release-${{ env.artifact_timestamp }}.dll + asset_content_type: application/octet-stream + + - name: Upload Release Artifact (Debug) + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: Debug/johnnyguitar.dll + asset_name: johnnyguitar-Debug-${{ env.artifact_timestamp }}.dll + asset_content_type: application/octet-stream