From 57af2dba0e8169a5308a4b0ca1cde8aae5cedafd Mon Sep 17 00:00:00 2001 From: colinator27 <17358554+colinator27@users.noreply.github.com> Date: Sun, 11 Aug 2024 14:45:20 -0400 Subject: [PATCH] Attempt at a new workflow for stable builds --- .github/workflows/publish_gui_release.yml | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/publish_gui_release.yml diff --git a/.github/workflows/publish_gui_release.yml b/.github/workflows/publish_gui_release.yml new file mode 100644 index 000000000..bc0e3bf45 --- /dev/null +++ b/.github/workflows/publish_gui_release.yml @@ -0,0 +1,52 @@ +name: Publish stable release of UndertaleModTool GUI + +on: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +jobs: + build_gui: + + strategy: + fail-fast: false + matrix: + os: [windows-latest] + configuration: [Release] + bundled: [true] + singlefile: [true, false] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 6.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: | + dotnet build UndertaleModTool --no-restore + - name: Publish ${{ matrix.os }} GUI + run: | + dotnet publish UndertaleModTool -c ${{ matrix.configuration }} -r win-x64 --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=${{ matrix.singlefile }} --output ${{ matrix.os }} + - name: Copy external files + run: | + cp ./README.md ./${{ matrix.os }} + cp ./SCRIPTS.md ./${{ matrix.os }} + cp ./LICENSE.txt ./${{ matrix.os }} + - name: Create zip for stable release Windows GUI + run: | + 7z a -tzip GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }}.zip ./${{ matrix.os }}/* -mx0 + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }} + path: GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }}.zip +