@@ -9,36 +9,40 @@ inputs:
99 tag :
1010 description : " Release Tag"
1111 required : true
12+ release_type :
13+ description : " Release Type"
14+ required : true
1215 GH_TOKEN :
1316 description : " GitHub Token"
1417 required : true
1518
1619runs :
1720 using : " composite"
1821 steps :
19- - name : Check Release Type
20- id : check_release_type
21- shell : bash
22- run : |
23- # Get the char count of the tag, discarding any `-rc*` at the end of the tag
24- # - signer releases will have a char count of 6
25- # - stacks-core releases will have a char count of 5
26- count=$(echo ${{ inputs.tag}} |tr -d ".|\n" | sed -e 's|-rc[0-9]*$||g' | wc -c)
27- echo "count: $count"
28- if [[ "${count}" -gt 5 ]]; then
29- echo "stacks signer: ${{inputs.tag}}"
30- echo "release_type=stacks-signer" >> $GITHUB_OUTPUT # if this is a signer release, use the stacks-signer as the release type
31- else
32- echo "stacks node: ${{inputs.tag}}"
33- echo "release_type=stacks-core" >> $GITHUB_OUTPUT # if this is a full release, use the repo name as the release type
34- fi
22+ # - name: Check Release Type
23+ # id: check_release_type
24+ # shell: bash
25+ # run: |
26+ # # Get the char count of the tag, discarding any `-rc*` at the end of the tag
27+ # # - signer releases will have a char count of 6
28+ # # - stacks-core releases will have a char count of 5
29+ # count=$(echo ${{ inputs.tag}} |tr -d ".|\n" | sed -e 's|-rc[0-9]*$||g' | wc -c)
30+ # echo "count: $count"
31+ # if [[ "${count}" -gt 5 ]]; then
32+ # echo "stacks signer: ${{inputs.tag}}"
33+ # echo "release_type=stacks-signer" >> $GITHUB_OUTPUT # if this is a signer release, use the stacks-signer as the release type
34+ # else
35+ # echo "stacks node: ${{inputs.tag}}"
36+ # echo "release_type=stacks-core" >> $GITHUB_OUTPUT # if this is a full release, use the repo name as the release type
37+ # fi
3538
3639 # # Downloads the artifacts built in `create-source-binary`
3740 - name : Download Artifacts
3841 id : download_artifacts
3942 uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
4043 with :
41- pattern : " ${{github.sha}}-${{ steps.check_release_type.outputs.release_type }}*" # matches artifact names like 727043a37fbc90f1c7eb391b590bde460ca0e36a-linux-glibc-arm64
44+ # pattern: "${{github.sha}}-${{ steps.check_release_type.outputs.release_type }}*" # matches artifact names like 727043a37fbc90f1c7eb391b590bde460ca0e36a-linux-glibc-arm64
45+ pattern : " ${{github.sha}}-${{ inputs.release_type }}*" # matches artifact names like 727043a37fbc90f1c7eb391b590bde460ca0e36a-linux-glibc-arm64
4246 path : release
4347 merge-multiple : true
4448
4751 id : generate_checksum
4852 uses : stacks-network/actions/generate-checksum@main
4953 with :
50- artifact_download_pattern : " ${{github.sha}}-${{ steps.check_release_type.outputs.release_type }}*" # matches artifact names like 727043a37fbc90f1c7eb391b590bde460ca0e36a-linux-glibc-arm64
54+ artifact_download_pattern : " ${{github.sha}}-${{ inputs.release_type }}*" # matches artifact names like 727043a37fbc90f1c7eb391b590bde460ca0e36a-linux-glibc-arm64
55+ # artifact_download_pattern: "${{github.sha}}-${{ steps.check_release_type.outputs.release_type }}*" # matches artifact names like 727043a37fbc90f1c7eb391b590bde460ca0e36a-linux-glibc-arm64
5156
5257 # # Upload the release archives with the checksums file
5358 - name : Upload Release
0 commit comments