Skip to content

Merge pull request #2940 from CombatExtended-Continued/Filth-Housekee… #18

Merge pull request #2940 from CombatExtended-Continued/Filth-Housekee…

Merge pull request #2940 from CombatExtended-Continued/Filth-Housekee… #18

Workflow file for this run

name: Build Branch
on:
workflow_dispatch:
push:
branches: [ master, Development, Rimworld-Version-1.4 ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: prebuild
run: |
rm -rf AssemblyPublicizer
git clone https://github.com/CombatExtended-Continued/AssemblyPublicizer
mkdir -p Assemblies
mkdir -p AssembliesCore
mkdir -p AssembliesCompat
mkdir -p ${{ runner.temp }}/downloads
- name: build loader
run: |
TEMP=${{ runner.temp }}/ python Make.py --csproj Source/Loader/Loader.csproj --output Assemblies/0CombatExtendedLoader.dll --download-libs --all-libs
- name: build core
run: |
TEMP=${{ runner.temp }}/ python Make.py --csproj Source/CombatExtended/CombatExtended.csproj --output Assemblies/CombatExtended.dll --download-libs --all-libs --publicizer $PWD/AssemblyPublicizer
- name: build compat
run: |
TEMP=${{ runner.temp }}/ python BuildCompat.py
- name: package
run: |
mkdir CombatExtended
cp -r Source/ Assemblies/ AssembliesCore/ AssembliesCompat/ About/ Defs/ Languages/ Patches/ Royalty/ Ideology/ Biotech/ Sounds/ Textures/ LoadFolders.xml README.md SupportedThirdPartyMods.md CombatExtended
zip -9 -r build.zip CombatExtended
- name: Upload to DO
run: |
printf "%s" "$SSH_KEY" > id_ecdsa
echo "$SSH_KEY_PUB" > id_ecdsa.pub
chmod 600 id_ecdsa
echo put build.zip CombatExtended-${{ github.run_id }}.zip | sftp -oStrictHostKeyChecking=no -P 2022 -i ./id_ecdsa [email protected]
echo put build.zip CombatExtended-latest.zip | sftp -oStrictHostKeyChecking=no -P 2022 -i ./id_ecdsa [email protected]
shell: bash
env:
SSH_KEY: ${{secrets.ID_ECDSA}}
SSH_KEY_PUB: ${{secrets.ID_ECDSA_PUB}}