Skip to content

0.1.3

0.1.3 #8

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_market_hall_production_town.dll ./mods/
mv target/i686-pc-windows-msvc/release/scrollmap_render_all_ships.dll ./mods/
mv target/i686-pc-windows-msvc/release/tavern_show_all_sailors.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 }}