Fix release workflow

This commit is contained in:
nicknase27
2026-07-18 13:18:52 +02:00
parent ece5fa1443
commit 687321262e
+5 -15
View File
@@ -1,8 +1,5 @@
name: Build
name: Build and Release
# on:
# push:
# pull_request:
on:
push:
tags:
@@ -18,11 +15,11 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
exe: ncmprs
binary: ncmprs
- os: windows-latest
target: x86_64-pc-windows-msvc
exe: ncmprs.exe
binary: ncmprs.exe
runs-on: ${{ matrix.os }}
@@ -42,14 +39,7 @@ jobs:
- name: Build
run: cargo build --release --target ${{ matrix.target }}
# - uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.target }}
# path: target/${{ matrix.target }}/release/${{ matrix.exe }}
- name: Create Release
- name: Upload to Release
uses: softprops/action-gh-release@v2
with:
files: |
target/${{ matrix.target }}/release/${{ matrix.exe }}
files: target/${{ matrix.target }}/release/${{ matrix.binary }}