Add Launch MW2 button #16
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: Release | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# todo: calculate version automatically | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
include: | |
- os: macos-latest | |
runtime: osx-arm64 | |
artifact: xb360 | |
- os: windows-latest | |
runtime: win-x64 | |
artifact: xb360.exe | |
- os: ubuntu-latest | |
runtime: linux-x64 | |
artifact: xb360 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.x | |
- name: Publish binary | |
run: dotnet publish ./xb360.csproj -c Release -r ${{ matrix.runtime }} -o ./${{ matrix.runtime }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.runtime }} # todo: include version number | |
path: ./${{ matrix.runtime }}/${{ matrix.artifact }} |