Actions: Add license to publish worfklow

pull/35/head
Miepee 4 years ago committed by GitHub
parent 9d8330c0f2
commit c1ca50661e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,14 +12,14 @@ jobs:
configuration: [Release] configuration: [Release]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
COMMAND: AM2RLauncher.Gtk -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained COMMAND: AM2RLauncher.Gtk -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained -o ubuntu-latest
ARTIFACT: AM2RLauncher/AM2RLauncher.Gtk/bin/Release/net6.0/ubuntu.18.04-x64/publish/ ARTIFACT: AM2RLauncher/builds/linux64
- os: macOS-latest - os: macOS-latest
COMMAND: AM2RLauncher.Mac -r osx-x64 --no-self-contained COMMAND: AM2RLauncher.Mac -r osx-x64 --no-self-contained -o macOS-latest
ARTIFACT: AM2RLauncher/AM2RLauncher.Mac/bin/Release/net6.0/osx-x64/AM2RLauncher.Mac.app/ ARTIFACT: AM2RLauncher/builds/osx64
- os: windows-latest - os: windows-latest
COMMAND: AM2RLauncher.Wpf -r win-x86 -o builds\win86 COMMAND: AM2RLauncher.Wpf -r win-x86 -o windows-latest
ARTIFACT: AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\ ARTIFACT: AM2RLauncher\builds\win86
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -35,6 +35,8 @@ jobs:
- name: Build - name: Build
working-directory: ./AM2RLauncher working-directory: ./AM2RLauncher
run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}"
- name: Post-Build
run: cp ./LICENSE ./AM2RLauncher/builds/${{ matrix.os }}/
# 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