diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index fef1c9f..f5168ed 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -12,14 +12,14 @@ jobs: configuration: [Release] include: - os: ubuntu-latest - COMMAND: AM2RLauncher.Gtk -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained - ARTIFACT: AM2RLauncher/AM2RLauncher.Gtk/bin/Release/net6.0/ubuntu.18.04-x64/publish/ + COMMAND: AM2RLauncher.Gtk -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained -o ubuntu-latest + ARTIFACT: AM2RLauncher/builds/linux64 - os: macOS-latest - COMMAND: AM2RLauncher.Mac -r osx-x64 --no-self-contained - ARTIFACT: AM2RLauncher/AM2RLauncher.Mac/bin/Release/net6.0/osx-x64/AM2RLauncher.Mac.app/ + COMMAND: AM2RLauncher.Mac -r osx-x64 --no-self-contained -o macOS-latest + ARTIFACT: AM2RLauncher/builds/osx64 - os: windows-latest - COMMAND: AM2RLauncher.Wpf -r win-x86 -o builds\win86 - ARTIFACT: AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\ + COMMAND: AM2RLauncher.Wpf -r win-x86 -o windows-latest + ARTIFACT: AM2RLauncher\builds\win86 runs-on: ${{ matrix.os }} @@ -35,6 +35,8 @@ jobs: - name: Build working-directory: ./AM2RLauncher run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" + - name: Post-Build + run: cp ./LICENSE ./AM2RLauncher/builds/${{ matrix.os }}/ # Steps for uploading artifacts. - name: Zip to Archive run: 7z a -tzip ${{ matrix.os }}.zip ./${{ matrix.ARTIFACT }}