Skip to content

Commit

Permalink
create-release: copy dependency management from build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan authored Sep 13, 2024
1 parent 6076185 commit 83d97be
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ on:
default: https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip
dependency-identifiers:
type: string
solution-file-path:
type: string
use-msbuild:
type: boolean
default: true
description: >
If MSBuild should be used. If your mod has no msbuild project (e.g. a pure part mod)
you should set this to false
use-ckan:
type: boolean
default: false
description: >
If CKAN should be installed to install dependencies in the msbuild project.
changelog-input-file:
type: string
default: CHANGELOG.md
Expand Down Expand Up @@ -67,13 +80,23 @@ jobs:
git commit -m "bump version to $VERSION_STRING"
git tag -f -a "$VERSION_STRING" -m "$VERSION_STRING"
# Install CKAN and set up an instance
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/setup-ckan@main
if: ${{ (inputs.use-ckan && inputs.use-msbuild) || inputs.dependency-identifiers }}

# Install any listed CKAN dependencies
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/install-dependencies@main
if: ${{ inputs.dependency-identifiers }}
with:
dependency-identifiers: ${{ inputs.dependency-identifiers }}

- name: compile
uses: KSPModdingLibs/KSPBuildTools/.github/actions/compile@main
with:
build-configuration: ${{ inputs.build-configuration }}
ksp-zip-url: ${{ inputs.ksp-zip-url }}
ksp-zip-password: ${{ secrets.ksp-zip-password }}
dependency-identifiers: ${{ inputs.dependency-identifiers }}
solution-file-path: ${{ inputs.solution-file-path }}

- name: assemble-release
id: assemble-release
Expand Down

0 comments on commit 83d97be

Please sign in to comment.