Skip to content

Commit

Permalink
add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan committed Oct 18, 2024
1 parent 7772135 commit e7ca8ea
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: build

on:
push:
branches: [ main ]
paths:
- '**/*.cs'
pull_request:
paths:
- '**/*.cs'
workflow_dispatch:
workflow_call:

jobs:
build:
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/build.yml@main

14 changes: 14 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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:
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 }}
16 changes: 16 additions & 0 deletions .github/workflows/validate-cfg-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Validate CFG Files

on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- '**.cfg'
push:
branches: [ main ]
paths:
- '**.cfg'

jobs:
validate:
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/validate.yml@main

0 comments on commit e7ca8ea

Please sign in to comment.