KSP-Conformal-Decals/.github/workflows/ksp-publish.yml

47 lines
1.4 KiB
YAML
Raw Normal View History

2022-03-07 07:17:38 +00:00
name: build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.7.2
with:
dotnet-version: '6.0.x'
- name: Install python tools
run: |
python -m pip install --upgrade pip
python -m pip install yaclog yaclog-ksp
- name: Install Conformal Decals dependencies
working-directory: Source
run: |
2022-03-07 07:23:39 +00:00
wget --user drewcassidy --password ${{ secrets.PILE_OF_ROCKS_PASS }} https://pileof.rocks/Secret/conformal-decals-dependencies-1.zip
2022-03-07 07:17:38 +00:00
mkdir -p ConformalDecals/bin/Release
2022-03-07 07:42:51 +00:00
unzip conformal-decals-dependencies-*.zip -d ConformalDecals/dlls
2022-03-07 07:17:38 +00:00
- name: Build Conformal Decals dll
working-directory: Source
run: |
2022-03-07 08:06:16 +00:00
dotnet build --configuration Release ConformalDecals.sln
- name: Zip Up Release
run: |
2022-03-07 08:10:10 +00:00
zip -r ConformalDecals-unbundled.zip GameData/ConformalDecals README.md CHANGELOG.md LICENSE-ART.md LICENSE-SOURCE.md
2022-03-07 08:06:16 +00:00
2022-03-07 08:08:43 +00:00
- name: Upload Unbundled Build
2022-03-07 08:06:16 +00:00
uses: actions/upload-artifact@v3
with:
2022-03-07 08:08:43 +00:00
name: build-unbundled
2022-03-07 08:06:16 +00:00
path: ConformalDecals-unbundled.zip