Fix release workflow
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
name: Build
|
name: Build and Release
|
||||||
|
|
||||||
# on:
|
|
||||||
# push:
|
|
||||||
# pull_request:
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
@@ -18,11 +15,11 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
exe: ncmprs
|
binary: ncmprs
|
||||||
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
exe: ncmprs.exe
|
binary: ncmprs.exe
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@@ -42,14 +39,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release --target ${{ matrix.target }}
|
run: cargo build --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
# - uses: actions/upload-artifact@v4
|
- name: Upload to Release
|
||||||
# with:
|
|
||||||
# name: ${{ matrix.target }}
|
|
||||||
# path: target/${{ matrix.target }}/release/${{ matrix.exe }}
|
|
||||||
|
|
||||||
- name: Create Release
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: target/${{ matrix.target }}/release/${{ matrix.binary }}
|
||||||
target/${{ matrix.target }}/release/${{ matrix.exe }}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user