build #6
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
name: build | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.cs' | |
pull_request: | |
paths: | |
- '**.cs' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 5.0.x | |
- name: Download required assemblies | |
run: echo "TODO" | |
- name: Install Dependencies | |
run: echo "TODO" | |
- name: Update Version | |
run: echo "TODO" | |
# TODO: fetch tag, datetime, etc | |
- name: Build Mod Solution | |
run: | | |
msbuild -restore /p:Configuration=Release /p:ReferencePath="${KSP_DIR}" ${GITHUB_WORKSPACE}/FreeIva.sln | |
- name: Assemble Release | |
run: echo "TODO" | |
# TODO: copy license/readme/changelog etc? copy to temp location? | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
# TODO: add version to filename? | |
name: FreeIva | |
path: ${GITHUB_WORKSPACE}/GameData |