Fix release workflow
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user