on main help sign in
Use Github CLI for release uploads
commit623dce3404b6b41c4e157ed356d22ccde3a0b835 authorfabianlindfors <fabian@flapplabs.se> dateWed 29 Dec 2021, 01:06 (5 years ago) parent5ede2a6
1 file changed+7−7
.github/workflows/release.yaml+7−7
.github/workflows/release.yaml+7−7
@@ -13,9 +13,11 @@ jobs:
1313 strategy:
1414 matrix:
1515 include:
16− - name: linux_amd64
16+ - name: Linux 64-bit
17+ file_name: linux_amd64
1718 target: x86_64-unknown-linux-gnu
18− - name: macos_amd64
19+ - name: macOS
20+ file_name: darwin_amd64
1921 target: x86_64-apple-darwin
2022 steps:
2123 - name: Checkout
@@ -34,13 +36,11 @@ jobs:
3436 args: --release
3537 use-cross: true
3638 - name: Rename binary
37− run: mv target/release/reshape ./reshape-${{ matrix.name }}
38− - name: Save binary to release
39− uses: skx/github-action-publish-binaries@master
39+ run: mv target/release/reshape ./reshape-${{ matrix.file_name }}
40+ - name: Upload binary to release
4041 env:
4142 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42− with:
43− args: reshape-${{ matrix.name }}
43+ run: gh release upload ${GITHUB_REF##*/} "reshape-${{ matrix.file_name }}#${{ matrix.name }}" --clobber
4444
4545 publish-docker:
4646 runs-on: ubuntu-latest