Merge pull request #3300 from CombatExtended-Continued/Fence-Gate-Height #26
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 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/ Anomaly/ Sounds/ Textures/ ModPatches/ 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}} | |