From 4ae49bf29bb805743de3d33ba3e122b2b73c0e8f Mon Sep 17 00:00:00 2001 From: 0g-wh Date: Tue, 30 Jul 2024 16:36:40 +0800 Subject: [PATCH] Create upload-release-assets.yml --- .github/workflows/upload-release-assets.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/upload-release-assets.yml diff --git a/.github/workflows/upload-release-assets.yml b/.github/workflows/upload-release-assets.yml new file mode 100644 index 00000000..2f2621a9 --- /dev/null +++ b/.github/workflows/upload-release-assets.yml @@ -0,0 +1,25 @@ +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: + go-version: '1.20' + - name: Build + run: make build + - name: Rename file + run: mv ./out/linux/0gchaind ./out/linux/0gchaind-linux + - name: Upload Release Asset + uses: softprops/action-gh-release@v2 + with: + files: ./out/linux/0gchaind-linux + env: + GITHUB_TOKEN: ${{ secrets.ZG_UPLOAD_ASSET }}