File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ permissions:
1111 contents : write
1212
1313jobs :
14- build-and- release :
14+ release :
1515 runs-on : ubuntu-latest
1616 env :
1717 VERSION : ${{ github.event.inputs.release_tag }}
@@ -34,18 +34,29 @@ jobs:
3434 - name : Build binaries
3535 run : make build
3636
37- - name : Generate checksums
37+ - name : Rename and archive binaries
3838 run : |
39+ RAW_TAG=${{ github.event.inputs.release_tag }}
40+ TAG=${RAW_TAG#v} # remove leading "v" if present
3941 cd build
40- sha256sum receiver-proxy sender-proxy > SHA256SUMS
42+
43+ # sender
44+ mv sender-proxy orderflow-proxy-sender-${TAG}-linux-amd64
45+ tar -czf orderflow-proxy-sender-${TAG}-linux-amd64.tar.gz orderflow-proxy-sender-${TAG}-linux-amd64
46+
47+ # receiver
48+ mv receiver-proxy orderflow-proxy-receiver-${TAG}-linux-amd64
49+ tar -czf orderflow-proxy-receiver-${TAG}-linux-amd64.tar.gz orderflow-proxy-receiver-${TAG}-linux-amd64
50+
51+ # checksums
52+ sha256sum orderflow-proxy-* > SHA256SUMS
4153
4254 - name : Create GitHub Release and upload binaries
4355 uses : softprops/action-gh-release@v2
4456 with :
4557 name : OrderflowProxy ${{ github.event.inputs.release_tag }}
4658 tag_name : ${{ github.event.inputs.release_tag }}
4759 files : |
48- build/receiver-proxy
49- build/sender-proxy
60+ build/orderflow-proxy-*
5061 build/SHA256SUMS
5162 generate_release_notes : true
You can’t perform that action at this time.
0 commit comments