forked from DylanSemrau/BoringCrewServices
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added KSPBT build (Continuous Integration) workflow to run on pull requests or pushes to main containing changes to cs files. - Added KSPBT create-release workflow to package up releases and create a draft. - Added KSPBT publish-to-spacedock workflow to automatically copy full releases and their release notes over to SpaceDock.
- Loading branch information
1 parent
761cd49
commit 59a6abc
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
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,18 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths: | ||
- '**/*.cs' | ||
pull_request: | ||
paths: | ||
- '**/*.cs' | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/build.yml@main | ||
with: | ||
solution-file-path: 'Source/BoringCrewServices.sln' |
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,15 @@ | ||
name: create-release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version-string: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
create-release: | ||
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/create-release.yml@main | ||
with: | ||
solution-file-path: 'Source/BoringCrewServices.sln' | ||
version-string: ${{ inputs.version-string }} |
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,14 @@ | ||
name: publish-to-spacedock | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
publish-to-spacedock: | ||
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/publish-to-spacedock.yml@main | ||
with: | ||
spacedock-username: ${{ vars.SPACEDOCK_USERNAME }} | ||
mod-id: ${{ vars.SPACEDOCK_MOD_ID }} | ||
secrets: | ||
spacedock-password: ${{ secrets.SPACEDOCK_PASSWORD }} |