-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.15 KB
/
release.yml
File metadata and controls
46 lines (37 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: release
on:
push:
tags:
- "*"
permissions:
contents: write
env:
GO_VERSION: "1.23"
jobs:
manual-release:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Perform cross builds
run: make cross
- name: Compress binaries
run: |
cd out
tar czf web3datacli_${GITHUB_REF#refs/tags/}_darwin_amd64.tar.gz web3datacli_${GITHUB_REF#refs/tags/}_darwin_amd64/
tar czf web3datacli_${GITHUB_REF#refs/tags/}_linux_amd64.tar.gz web3datacli_${GITHUB_REF#refs/tags/}_linux_amd64/
- name: Get git tag
run: echo "tag=$(git describe --tags --exact-match HEAD)" >> $GITHUB_ENV
- name: Publish binaries
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
tag: ${{ env.tag }}
release_name: ${{ env.tag }}
file_glob: true
file: out/*.tar.gz
overwrite: true