2024-07-30 10:31:48 +00:00
|
|
|
name: Upload Release Assets
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
2024-08-05 01:53:17 +00:00
|
|
|
go-version: '1.21'
|
2024-07-30 10:31:48 +00:00
|
|
|
- name: Build
|
2024-08-05 15:11:18 +00:00
|
|
|
run: sudo LINK_STATICALLY=true make build-release
|
2024-07-30 10:31:48 +00:00
|
|
|
- name: Rename file
|
2024-08-05 15:11:18 +00:00
|
|
|
run: sudo mv ./out/linux/0gchaind ./out/linux/0gchaind-linux-${{ github.ref_name }}
|
2024-07-30 10:31:48 +00:00
|
|
|
- name: Upload Release Asset
|
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
|
with:
|
|
|
|
files: ./out/linux/0gchaind-linux-${{ github.ref_name }}
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.ZG_UPLOAD_ASSET }}
|