mirror of
https://github.com/softinio/Fishee.git
synced 2025-02-22 13:36:04 -08:00
release assets to include os and arch in name (#4)
This commit is contained in:
commit
a039a838c6
1 changed files with 4 additions and 4 deletions
8
.github/workflows/build-and-release.yml
vendored
8
.github/workflows/build-and-release.yml
vendored
|
@ -21,12 +21,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
swift build -c release --arch ${{ matrix.arch }}
|
swift build -c release --arch ${{ matrix.arch }}
|
||||||
mkdir -p artifacts/macos-${{ matrix.arch }}
|
mkdir -p artifacts/macos-${{ matrix.arch }}
|
||||||
cp .build/release/fishee artifacts/macos-${{ matrix.arch }}/
|
cp .build/release/fishee artifacts/macos-${{ matrix.arch }}/fishee-macos-${{ matrix.arch }}-${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
- name: Upload macOS artifacts as release assets
|
- name: Upload macOS artifacts as release assets
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: artifacts/macos-${{ matrix.arch }}/fishee
|
files: artifacts/macos-${{ matrix.arch }}/fishee-macos-${{ matrix.arch }}-${{ github.event.release.tag_name }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
@ -43,11 +43,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
swift build -c release
|
swift build -c release
|
||||||
mkdir -p artifacts/linux
|
mkdir -p artifacts/linux
|
||||||
cp .build/release/fishee artifacts/linux/
|
cp .build/release/fishee artifacts/linux/fishee-linux-${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
- name: Upload Linux artifacts as release assets
|
- name: Upload Linux artifacts as release assets
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: artifacts/linux/fishee
|
files: artifacts/linux/fishee-linux-${{ github.event.release.tag_name }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue