51
51
inputs.signer_tag != ''
52
52
name : Build Binaries
53
53
runs-on : ubuntu-latest
54
+ environment : " Build Release"
54
55
strategy :
55
56
# # Run a maximum of 10 builds concurrently, using the matrix defined in inputs.arch
56
57
max-parallel : 10
85
86
signer_docker_tag : ${{ inputs.signer_docker_tag }}
86
87
is_node_release : ${{ inputs.is_node_release }}
87
88
88
- # # Runs when the following is true:
89
- # # - either node or signer tag is provided
90
- create-release :
91
- if : |
92
- inputs.node_tag != '' ||
93
- inputs.signer_tag != ''
94
- name : Create Release
95
- runs-on : ubuntu-latest
96
- needs :
97
- - build-binaries
98
- steps :
99
- # # Creates releases
100
- - name : Create Release
101
- uses : stacks-network/actions/stacks-core/release/create-releases@main
102
- with :
103
- node_tag : ${{ inputs.node_tag }}
104
- node_docker_tag : ${{ inputs.node_docker_tag }}
105
- signer_tag : ${{ inputs.signer_tag }}
106
- signer_docker_tag : ${{ inputs.signer_docker_tag }}
107
- is_node_release : ${{ inputs.is_node_release }}
108
- is_signer_release : ${{ inputs.is_signer_release }}
109
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
110
-
111
89
# # Builds arch dependent Docker images from binaries
112
90
# #
113
91
# # Runs when the following is true:
120
98
runs-on : ubuntu-latest
121
99
needs :
122
100
- build-binaries
123
- - create-release
124
101
strategy :
125
102
fail-fast : false
126
103
# # Build a maximum of 2 images concurrently based on matrix.dist
@@ -143,6 +120,30 @@ jobs:
143
120
DOCKERHUB_PASSWORD : ${{ secrets.DOCKERHUB_PASSWORD }}
144
121
dist : ${{ matrix.dist }}
145
122
123
+ # # Runs when the following is true:
124
+ # # - either node or signer tag is provided
125
+ create-release :
126
+ if : |
127
+ inputs.node_tag != '' ||
128
+ inputs.signer_tag != ''
129
+ name : Create Release
130
+ runs-on : ubuntu-latest
131
+ needs :
132
+ - build-binaries
133
+ - docker-image
134
+ steps :
135
+ # # Creates releases
136
+ - name : Create Release
137
+ uses : stacks-network/actions/stacks-core/release/create-releases@main
138
+ with :
139
+ node_tag : ${{ inputs.node_tag }}
140
+ node_docker_tag : ${{ inputs.node_docker_tag }}
141
+ signer_tag : ${{ inputs.signer_tag }}
142
+ signer_docker_tag : ${{ inputs.signer_docker_tag }}
143
+ is_node_release : ${{ inputs.is_node_release }}
144
+ is_signer_release : ${{ inputs.is_signer_release }}
145
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
146
+
146
147
# # Create the downstream PR for the release branch to master,develop
147
148
create-pr :
148
149
if : |
0 commit comments