on main help sign in
Use Github CLI for release uploads
623dce3fabianlindfors
.github/workflows/release.yaml+7−7
@@ -13,9 +13,11 @@ jobs:
13 strategy:
13 strategy:
14 matrix:
14 matrix:
15 include:
15 include:
16+ - name: Linux 64-bit
16− - name: linux_amd64
17+ file_name: linux_amd64
17 target: x86_64-unknown-linux-gnu
18 target: x86_64-unknown-linux-gnu
18− - name: macos_amd64
19+ - name: macOS
20+ file_name: darwin_amd64
19 target: x86_64-apple-darwin
21 target: x86_64-apple-darwin
20 steps:
22 steps:
21 - name: Checkout
23 - name: Checkout
@@ -34,13 +36,11 @@ jobs:
34 args: --release
36 args: --release
35 use-cross: true
37 use-cross: true
36 - name: Rename binary
38 - name: Rename binary
37− run: mv target/release/reshape ./reshape-${{ matrix.name }}
39+ run: mv target/release/reshape ./reshape-${{ matrix.file_name }}
38− - name: Save binary to release
40+ - name: Upload binary to release
39− uses: skx/github-action-publish-binaries@master
40 env:
41 env:
41 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42− with:
43+ run: gh release upload ${GITHUB_REF##*/} "reshape-${{ matrix.file_name }}#${{ matrix.name }}" --clobber
43− args: reshape-${{ matrix.name }}
44
44
45 publish-docker:
45 publish-docker:
46 runs-on: ubuntu-latest
46 runs-on: ubuntu-latest