Skip to content

Commit 96cf95f

Browse files
committed
replace usage of other action with gh CLI
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent b6b4b81 commit 96cf95f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release-binaries.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
build:
912
name: Build ${{ matrix.target }}
@@ -52,8 +55,6 @@ jobs:
5255
zip ../../../vx-${{ matrix.target }}.zip vx.exe
5356
5457
- name: Upload release asset
55-
uses: softprops/action-gh-release@v2
56-
with:
57-
files: vx-${{ matrix.target }}.${{ matrix.archive == 'tgz' && 'tar.gz' || 'zip' }}
58+
run: gh release upload "${{ github.event.release.tag_name }}" vx-${{ matrix.target }}.${{ matrix.archive == 'tgz' && 'tar.gz' || 'zip' }}
5859
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)