mirror of
https://github.com/softinio/Fishee.git
synced 2025-02-22 05:26:05 -08:00
Use softprop release action for uploading assets (#3)
This commit is contained in:
commit
75acb0b24c
1 changed files with 10 additions and 8 deletions
18
.github/workflows/build-and-release.yml
vendored
18
.github/workflows/build-and-release.yml
vendored
|
@ -23,11 +23,12 @@ jobs:
|
|||
mkdir -p artifacts/macos-${{ matrix.arch }}
|
||||
cp .build/release/fishee artifacts/macos-${{ matrix.arch }}/
|
||||
|
||||
- name: Upload macOS artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
- name: Upload macOS artifacts as release assets
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: fishee-macos-${{ matrix.arch }}-${{ github.ref_name }}
|
||||
path: artifacts/macos-${{ matrix.arch }}
|
||||
files: artifacts/macos-${{ matrix.arch }}/fishee
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -44,8 +45,9 @@ jobs:
|
|||
mkdir -p artifacts/linux
|
||||
cp .build/release/fishee artifacts/linux/
|
||||
|
||||
- name: Upload Linux artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
- name: Upload Linux artifacts as release assets
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: fishee-linux-${{ github.ref_name }}
|
||||
path: artifacts/linux
|
||||
files: artifacts/linux/fishee
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue