From 174e7334a2fd1322263e9aafe0c38406c47fccc6 Mon Sep 17 00:00:00 2001 From: NathanKell Date: Wed, 27 Sep 2023 21:16:49 -0700 Subject: [PATCH] Fix CI and update nightly version to 3.0.0.0 --- .github/workflows/attachReleaseArtifacts.yml | 10 ++++++++++ .github/workflows/build.yml | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/attachReleaseArtifacts.yml b/.github/workflows/attachReleaseArtifacts.yml index 9f2d883a240..8b147be3c3a 100644 --- a/.github/workflows/attachReleaseArtifacts.yml +++ b/.github/workflows/attachReleaseArtifacts.yml @@ -32,6 +32,16 @@ jobs: with: KSP_ZIP_PASSWORD: ${{ secrets.KSP_ZIP_PASSWORD }} + # Install .NET SDKs + - name: Setup .NET Core 3.1 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.x + - name: Setup .NET 5.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Update AssemblyInfo uses: KSP-RO/BuildTools/update-assembly-info@master with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 751e195afe8..d872c04bb18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,15 +53,25 @@ jobs: fi echo "commit_sha=$GIT_SHA" >> $GITHUB_ENV echo commit SHA: $GIT_SHA - INFO_TEXT="2.0.0.0-$(echo $GIT_SHA | cut -c1-7)-$(date -u '+%y%m%dT%H%M')" + INFO_TEXT="3.0.0.0-$(echo $GIT_SHA | cut -c1-7)-$(date -u '+%y%m%dT%H%M')" echo "info_text=$INFO_TEXT" >> $GITHUB_ENV echo Info Text: $INFO_TEXT + + # Install .NET SDKs + - name: Setup .NET Core 3.1 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.x + - name: Setup .NET 5.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x - name: Update AssemblyInfo uses: KSP-RO/BuildTools/update-assembly-info@AssemblyInformationalVersion with: path: ${GITHUB_WORKSPACE}/Source/RP0/Properties/AssemblyInfo.cs - tag: "2.0.0.0" + tag: "3.0.0.0" informational-version: ${{env.info_text}} - name: Build mod solution @@ -71,7 +81,7 @@ jobs: uses: KSP-RO/BuildTools/update-version-file@master with: path: ${GITHUB_WORKSPACE}/GameData/RP-1/RP-1.version - tag: "v2.0.0.0" + tag: "v3.0.0.0" - name: Assemble release id: assemble-release