Merge pull request #41 from jakobharder/devel/fix-mutant-crash #21
Workflow file for this run
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: main | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build | |
run: (cd source && dotnet publish Burntime.MonoGame -c Release /p:DebugSymbols=false /p:PublishReadyToRun=false /p:TieredCompilation=false --self-contained /p:PublishSingleFile=true && cd ..) | |
- name: Build Tools | |
run: | | |
cd source | |
dotnet build PakConverter -c Release /p:DebugSymbols=false | |
cd .. | |
- name: Create Paks | |
run: | | |
cd ./bin/Release/win-x64/publish/game | |
../../../../tools/Release/PakConverter.exe classic | |
../../../../tools/Release/PakConverter.exe classic_newgfx | |
../../../../tools/Release/PakConverter.exe amiga | |
../../../../tools/Release/PakConverter.exe music | |
cd ../../../../.. | |
- name: Remove Folders | |
run: | | |
rm -r ./bin/Release/win-x64/publish/game/classic | |
rm -r ./bin/Release/win-x64/publish/game/classic_newgfx | |
rm -r ./bin/Release/win-x64/publish/game/classic_es | |
rm -r ./bin/Release/win-x64/publish/game/classic_jp | |
rm -r ./bin/Release/win-x64/publish/game/amiga | |
rm -r ./bin/Release/win-x64/publish/game/music | |
- name: Package | |
run: | | |
rm ./bin/Release/win-x64/publish/*.pdb | |
tar -caf burntime-${{ github.ref_name }}.zip -C ./bin/Release/win-x64/publish * | |
# rm ./bin/tools/Release/win-x64/publish/*.pdb | |
# tar -caf burntime-tools.zip -C ./bin/tools/Release/win-x64/publish * | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
files: ./burntime*.zip |