GitHub Action
Upload Asset
v1
Latest version
This action upload file to release asset.
Required set secrets.GITHUB_TOKEN
to env.GITHUB_TOKEN
Required upload file to release asset
file suffix
Default .tar.gz
which operating system platform for file to execute
which architecture platform for file to execute
upload file to asset with tag version
Default true
upload file to asset with hash in sha1 algorithm
Default true
uses: PeerXu/upload-asset@v1
with:
file: path/to/binary.tar.gz
os: linux
arch: amd64
with_tag: true
with_sha1: true
suffix: .tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}