Skip to content

Release Build

Release Build #17

Workflow file for this run

name: Release Build
on:
release:
types: [created]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- run: rustup target add i686-pc-windows-msvc
- run: rustup target add i686-pc-windows-msvc
- run: cargo build --release
- run: |
mkdir mods
mv target/i686-pc-windows-msvc/release/fix_bath_house_bribe_blunders ./mods/
mv target/i686-pc-windows-msvc/release/fix_damage_to_offside_ship_artillery.dll ./mods/
mv target/i686-pc-windows-msvc/release/fix_invulnerable_ship_artillery_slots.dll ./mods/
mv target/i686-pc-windows-msvc/release/fix_market_hall_production_town.dll ./mods/
mv target/i686-pc-windows-msvc/release/fix_new_settlement_ware_production.dll ./mods/
mv target/i686-pc-windows-msvc/release/fix_siege_beggar_satisfaction_bonus.dll ./mods/
mv target/i686-pc-windows-msvc/release/high_res.dll ./mods/
mv target/i686-pc-windows-msvc/release/increase_alderman_found_settlement_mission_limit.dll ./mods/
mv target/i686-pc-windows-msvc/release/scrollmap_render_all_ships.dll ./mods/
mv target/i686-pc-windows-msvc/release/shipyard_details.dll ./mods/
mv target/i686-pc-windows-msvc/release/tavern_show_all_sailors.dll ./mods/
mv target/i686-pc-windows-msvc/release/town_hall_details.dll ./mods/
mkdir files
mv target/i686-pc-windows-msvc/release/aimcli.exe ./files
mv target/i686-pc-windows-msvc/release/cprcli.exe ./files
mv target/i686-pc-windows-msvc/release/roucli.exe ./files
mv target/i686-pc-windows-msvc/release/p3_modloader.dll ./files
Compress-Archive -Path ./mods/* -DestinationPath ./mods.zip
gh release upload ${{ github.ref_name }} ./mods.zip ./files/aimcli.exe ./files/cprcli.exe ./files/roucli.exe ./files/p3_modloader.dll
env:
GITHUB_TOKEN: ${{ github.TOKEN }}