Clean workflow file

pull/8/head
Miepee 4 years ago committed by GitHub
parent 823f938c25
commit e307d91757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,17 +17,12 @@ jobs:
- os: ubuntu-latest - os: ubuntu-latest
COMMAND: AM2RModPacker -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained -o builds/ubuntu-latest -p:BuildPlatform=Gtk COMMAND: AM2RModPacker -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained -o builds/ubuntu-latest -p:BuildPlatform=Gtk
ARTIFACT: builds/ubuntu-latest ARTIFACT: builds/ubuntu-latest
POSTBUILD: echo "No post build to do!"
- os: macOS-latest - os: macOS-latest
COMMAND: AM2RModPacker -r osx-x64 --no-self-contained -o builds/macOS-latest COMMAND: AM2RModPacker -r osx-x64 --no-self-contained -o builds/macOS-latest
ARTIFACT: builds/macOS-latest ARTIFACT: builds/macOS-latest
POSTBUILD: echo "No post build to do!"
- os: windows-latest - os: windows-latest
COMMAND: AM2RModPacker -r win-x86 --no-self-contained -o builds/windows-latest COMMAND: AM2RModPacker -p:PublishSingleFile=true -r win-x86 --no-self-contained -o builds/windows-latest
ARTIFACT: builds/windows-latest ARTIFACT: builds/windows-latest
# This is very ugly, *please* tell me a better way to do this
#POSTBUILD: mv AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\AM2RLauncher.Wpf.exe AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\AM2RLauncher.exe && mv AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\AM2RLauncher.Wpf.exe.config AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\AM2RLauncher.exe.config && rmdir AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\publish -Recurse
POSTBUILD: echo "No post build to do!"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -42,9 +37,7 @@ jobs:
- name: Build - name: Build
run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}"
- name: Post-Build - name: Post-Build
run: | run: cp ./LICENSE ./${{ matrix.ARTIFACT }}/
cp ./LICENSE ./${{ matrix.ARTIFACT }}/
${{ matrix.POSTBUILD }}
# Steps for uploading artifacts. # Steps for uploading artifacts.
- name: Zip to Archive - name: Zip to Archive
run: 7z a -tzip ${{ matrix.os }}.zip ./${{ matrix.ARTIFACT }} run: 7z a -tzip ${{ matrix.os }}.zip ./${{ matrix.ARTIFACT }}

Loading…
Cancel
Save