From f18779ef2889a37ffef1482e2309ab7026d0742a Mon Sep 17 00:00:00 2001 From: freedom Date: Mon, 4 Dec 2023 13:41:24 -0700 Subject: [PATCH] moar yml --- .github/workflows/msbuild.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 19ff345..f766d5f 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -4,6 +4,7 @@ # documentation. name: MSBuild +uses: comnoco/create-release-action@v2.0.5 on: workflow_dispatch: @@ -44,3 +45,19 @@ jobs: # Add additional options to the MSBuild command line here (like platform or verbosity level). # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} + + - name: Set Date Environment Variable + run: set BUILDATE=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2% + + - name: Create Release + id: auto-build + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: $env:BUILDATE + release_name: Auto-Build ${{ github.ref }} + body: | + Automatically generated build. Possibly and likely unstable. + draft: false + prerelease: true