File tree 1 file changed +56
-0
lines changed 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release Workflow
2
+
3
+ permissions :
4
+ contents : write
5
+
6
+ on :
7
+ workflow_dispatch :
8
+ inputs :
9
+ tag :
10
+ description : ' Tag to release'
11
+ required : true
12
+ type : string
13
+ description :
14
+ description : ' Release description'
15
+ required : true
16
+ type : string
17
+ prerelease :
18
+ description : ' Whether prerelease is enabled'
19
+ required : true
20
+ type : boolean
21
+ default : false
22
+
23
+ jobs :
24
+ call-reusable-release :
25
+ uses : babylonlabs-io/.github/.github/workflows/reusable_github_release.yml@v0.13.0
26
+ with :
27
+ tag : ${{ inputs.tag }}
28
+ description : ${{ inputs.description }}
29
+ prerelease : ${{ inputs.prerelease }}
30
+ changelog_path : " https://github.com/babylonlabs-io/babylon/blob/main/CHANGELOG.md"
31
+ build_command : |
32
+ # Only use the below command for mainnet
33
+ make build
34
+ # Only use the below command for testnet
35
+ BABYLON_BUILD_OPTIONS="testnet" make build
36
+ docker_image_table_template : |
37
+ | Image | Description |
38
+ |-----------------|----------------|
39
+ | babylonlabs/babylond:${{ inputs.tag }} | Mainnet image |
40
+ | babylonlabs/babylond:${{ inputs.tag }}-testnet | Testnet image |
41
+ secrets : inherit
42
+
43
+ goreleaser :
44
+ name : Create release
45
+ needs : call-reusable-release
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - name : Checkout
49
+ uses : actions/checkout@v4
50
+ with :
51
+ fetch-depth : 0
52
+ - name : Make release
53
+ run : |
54
+ make release
55
+ env :
56
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments