Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and Publish Artifacts

on:
push:
branches: [ main ]
tags:
- 'v*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
runtime: [win-x64, osx-x64, osx-arm64, linux-x64]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '9.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Publish single-file executable for ${{ matrix.runtime }}
run: |
dotnet publish src/CLI \
-c Release \
-r ${{ matrix.runtime }} \
--self-contained true \
/p:PublishSingleFile=true \
/p:IncludeAllContentForSelfExtract=true \
-o ./publish/${{ matrix.runtime }}

- name: Upload artifact for ${{ matrix.runtime }}
uses: actions/upload-artifact@v4
with:
name: DrumMidiRemapper-${{ matrix.runtime }}
path: ./publish/${{ matrix.runtime }}

- name: Upload Release Asset
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: ./publish/${{ matrix.runtime }}/CLI*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35 changes: 0 additions & 35 deletions .github/workflows/build.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/release.yml

This file was deleted.