Skip to content

work around git hash in version #19

work around git hash in version

work around git hash in version #19

Workflow file for this run

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