Add properties for shape stats to Abstract Shape. Support adding mass… #28
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
# This is a basic workflow to help you get started with Actions | |
name: build | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
check-secret: | |
uses: KSP-RO/BuildTools/.github/workflows/check-secret.yml@master | |
secrets: | |
KSP_ZIP_PASSWORD: ${{ secrets.KSP_ZIP_PASSWORD }} | |
validate-cfg-files: | |
uses: KSP-RO/BuildTools/.github/workflows/validate-cfg-files.yml@master | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
needs: [check-secret] | |
if: needs.check-secret.outputs.has-password == 'true' | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
- name: Download required assemblies | |
id: download-assemblies | |
uses: KSP-RO/BuildTools/download-assemblies@master | |
with: | |
KSP_ZIP_PASSWORD: ${{ secrets.KSP_ZIP_PASSWORD }} | |
- name: Build mod solution | |
run: msbuild /p:Configuration=Release /p:ReferencePath="${{ steps.download-assemblies.outputs.ksp-dll-path }}" ${GITHUB_WORKSPACE}/Source/ProceduralParts.sln | |
- name: Build metadata | |
uses: KSP-RO/BuildTools/update-version-file@master | |
with: | |
path: ${GITHUB_WORKSPACE}/GameData/ProceduralParts/ProceduralParts.version | |
tag: "v3.0.0.0" | |
- name: Assemble release | |
id: assemble-release | |
run: | | |
RELEASE_DIR="${RUNNER_TEMP}/release" | |
echo "Release dir: ${RELEASE_DIR}" | |
mkdir -v "${RELEASE_DIR}" | |
echo "::set-output name=release-dir::${RELEASE_DIR}" | |
cp -v -R "${GITHUB_WORKSPACE}/GameData" "${RELEASE_DIR}" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ProceduralParts | |
path: ${{ steps.assemble-release.outputs.release-dir }} |