From 7bd2c70d73d71323597496018301a9a646dae27b Mon Sep 17 00:00:00 2001 From: Rampastring Date: Sun, 10 Mar 2024 23:24:01 +0200 Subject: [PATCH] Modify release workflow to publish a TS Steam build --- .github/workflows/release_publish.yml | 37 ++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_publish.yml b/.github/workflows/release_publish.yml index 5d18faca..f594e808 100644 --- a/.github/workflows/release_publish.yml +++ b/.github/workflows/release_publish.yml @@ -21,10 +21,10 @@ jobs: - name: Build Editor run: ./build.ps1 shell: pwsh - + - name: Pack compiled binaries run: 7z a -tzip -r WorldAlteringEditor_TSClient.zip "D:\a\WorldAlteringEditor\WorldAlteringEditor\Build\*.*" - + - name: Upload compiled binaries uses: actions/upload-release-asset@v1 env: @@ -52,10 +52,10 @@ jobs: - name: Build Editor run: ./build.ps1 shell: pwsh - + - name: Pack compiled binaries run: 7z a -tzip -r WorldAlteringEditor_YurisRevenge.zip "D:\a\WorldAlteringEditor\WorldAlteringEditor\Build\*.*" - + - name: Upload compiled binaries uses: actions/upload-release-asset@v1 env: @@ -66,3 +66,32 @@ jobs: asset_name: WorldAlteringEditor_YurisRevenge.zip asset_content_type: application/zip + release-steamts: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3.1.0 + with: + ref: steamts + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v3.0.3 + with: + dotnet-version: '8.x.x' + + - name: Build Editor + run: ./build.ps1 + shell: pwsh + + - name: Pack compiled binaries + run: 7z a -tzip -r WorldAlteringEditor_TS_Steam.zip "D:\a\WorldAlteringEditor\WorldAlteringEditor\Build\*.*" + + - name: Upload compiled binaries + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: 'WorldAlteringEditor_TS_Steam.zip' + asset_name: WorldAlteringEditor_TS_Steam.zip + asset_content_type: application/zip \ No newline at end of file