Skip to content

Commit e7ca8ea

Browse files
committed
add github workflows
1 parent 7772135 commit e7ca8ea

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- '**/*.cs'
8+
pull_request:
9+
paths:
10+
- '**/*.cs'
11+
workflow_dispatch:
12+
workflow_call:
13+
14+
jobs:
15+
build:
16+
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/build.yml@main
17+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: create-release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version-string:
7+
type: string
8+
required: true
9+
10+
jobs:
11+
create-release:
12+
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/create-release.yml@main
13+
with:
14+
version-string: ${{ inputs.version-string }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: publish-to-spacedock
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
publish-to-spacedock:
9+
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/publish-to-spacedock.yml@main
10+
with:
11+
spacedock-username: ${{ vars.SPACEDOCK_USERNAME }}
12+
mod-id: ${{ vars.SPACEDOCK_MOD_ID }}
13+
secrets:
14+
spacedock-password: ${{ secrets.SPACEDOCK_PASSWORD }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Validate CFG Files
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
pull_request:
7+
paths:
8+
- '**.cfg'
9+
push:
10+
branches: [ main ]
11+
paths:
12+
- '**.cfg'
13+
14+
jobs:
15+
validate:
16+
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/validate.yml@main

0 commit comments

Comments
 (0)