-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
9,159 additions
and
1,068 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Build the solution | ||
run: dotnet build "Simpit.sln" -c Release | ||
|
||
- name: Find zip | ||
id: find-zip | ||
run: | | ||
echo "zip=$(ls -1 dist/Simpit-*.zip | head -n 1)" >> $GITHUB_ENV | ||
echo "artifact_name=SimpitRelease" >> $GITHUB_ENV | ||
- name: Upload zip artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.artifact_name }} | ||
path: ${{ env.zip }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Upload release | ||
|
||
env: | ||
SPACEDOCK_MOD_ID: fill_in_your_mod_id_here | ||
|
||
on: | ||
release: | ||
types: [ "published" ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Download NuGet | ||
id: download-nuget | ||
run: sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
|
||
- name: Build the solution | ||
run: dotnet build "Simpit.sln" -c Release | ||
|
||
- name: Extract current version | ||
id: get-version | ||
run: | | ||
version=$(jq -r '.version' plugin_template/swinfo.json) | ||
echo "Version is $version" | ||
echo "version=$version" >> $GITHUB_ENV | ||
echo "release_filename=Simpit-$version.zip" >> $GITHUB_ENV | ||
echo "zip=$(ls -1 dist/Simpit-*.zip | head -n 1)" >> $GITHUB_ENV | ||
echo "upload_url=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].upload_url' | tr -d \")" >> $GITHUB_ENV | ||
wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq -r '.[0].body' > ./changelog.md | ||
- name: Upload zip to release | ||
uses: shogo82148/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ env.upload_url }} | ||
asset_path: ${{ env.zip }} | ||
asset_name: ${{ env.release_filename }} | ||
asset_content_type: application/zip | ||
|
||
# - name: Add Mask | ||
# run: echo "::add-mask::${{ secrets.SPACEDOCK_PASSWORD }}" | ||
# | ||
# - name: Update mod on SpaceDock | ||
# uses: KSP2Community/[email protected] | ||
# with: | ||
# username: ${{ secrets.SPACEDOCK_USER }} | ||
# password: ${{ secrets.SPACEDOCK_PASSWORD }} | ||
# game_id: 22407 | ||
# mod_id: ${{ env.SPACEDOCK_MOD_ID }} | ||
# version: ${{ env.version }} | ||
# zipball: ${{ env.zip }} | ||
# changelog: ./changelog.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Verify swinfo.json | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
verify: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Verify KSP2 Mod | ||
uses: Rexicon226/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.8.34330.188 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{0D848141-4620-47B2-AF57-02BF768348DB}") = "Simpit", "src\Simpit\Simpit.csproj", "{3CB59FD8-9616-403F-9935-36F40342CDD1}" | ||
Project("{41FFCBB3-78C9-4A4B-B55E-478C960C6418}") = "Simpit", "src/Simpit/Simpit.csproj", "{96243FF1-A7E2-4574-902B-81A3592BFD26}" | ||
EndProject | ||
Project("{41FFCBB3-78C9-4A4B-B55E-478C960C6418}") = "Simpit.Unity", "src/Simpit.Unity/Simpit.Unity.csproj", "{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
Deploy|Any CPU = Deploy|Any CPU | ||
DeployAndRun|Any CPU = DeployAndRun|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.Deploy|Any CPU.Build.0 = Deploy|Any CPU | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.DeployAndRun|Any CPU.ActiveCfg = DeployAndRun|Any CPU | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.DeployAndRun|Any CPU.Build.0 = DeployAndRun|Any CPU | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{3CB59FD8-9616-403F-9935-36F40342CDD1}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {48EA8D91-9EFD-4435-B9B4-57D06796183B} | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.Deploy|Any CPU.Build.0 = Deploy|Any CPU | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.DeployAndRun|Any CPU.ActiveCfg = DeployAndRun|Any CPU | ||
{96243FF1-A7E2-4574-902B-81A3592BFD26}.DeployAndRun|Any CPU.Build.0 = DeployAndRun|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.Deploy|Any CPU.ActiveCfg = Deploy|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.Deploy|Any CPU.Build.0 = Deploy|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.DeployAndRun|Any CPU.ActiveCfg = DeployAndRun|Any CPU | ||
{9BED4A08-E72A-4B13-8ED2-63BFB8725C54}.DeployAndRun|Any CPU.Build.0 = DeployAndRun|Any CPU | ||
EndGlobalSection | ||
EndGlobal | ||
|
||
|
Oops, something went wrong.