Skip to content

Commit

Permalink
KSPBT Workflows
Browse files Browse the repository at this point in the history
- 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
SofieBrink committed Oct 6, 2024
1 parent 761cd49 commit 59a6abc
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/continuous-integration.yml
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'
15 changes: 15 additions & 0 deletions .github/workflows/create-release.yml
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 }}
14 changes: 14 additions & 0 deletions .github/workflows/publish-to-spacedock.yml
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 }}

0 comments on commit 59a6abc

Please sign in to comment.