Skip to content

Commit

Permalink
Fix CI and update nightly version to 3.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Sep 28, 2023
1 parent daf42f8 commit 174e733
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/attachReleaseArtifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 174e733

Please sign in to comment.