@@ -27,95 +27,95 @@ jobs:
2727 permissions :
2828 contents : read
2929
30- create-release :
31- name : Create Release
32- if : github.ref_type == 'tag'
33- runs-on : ubuntu-24.04
34- needs : build-project
35- defaults :
36- run :
37- shell : bash
38- steps :
39- - name : Check Release Tag
40- id : check
41- run : |
42- : Check Release Tag
43- if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
44- shopt -s extglob
30+ # create-release:
31+ # name: Create Release
32+ # if: github.ref_type == 'tag'
33+ # runs-on: ubuntu-24.04
34+ # needs: build-project
35+ # defaults:
36+ # run:
37+ # shell: bash
38+ # steps:
39+ # - name: Check Release Tag
40+ # id: check
41+ # run: |
42+ # : Check Release Tag
43+ # if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
44+ # shopt -s extglob
4545
46- case "${GITHUB_REF_NAME}" in
47- +([0-9]).+([0-9]).+([0-9]) )
48- echo 'validTag=true' >> $GITHUB_OUTPUT
49- echo 'prerelease=false' >> $GITHUB_OUTPUT
50- echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
51- ;;
52- +([0-9]).+([0-9]).+([0-9])-@(beta|rc)*([0-9]) )
53- echo 'validTag=true' >> $GITHUB_OUTPUT
54- echo 'prerelease=true' >> $GITHUB_OUTPUT
55- echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
56- ;;
57- *) echo 'validTag=false' >> $GITHUB_OUTPUT ;;
58- esac
46+ # case "${GITHUB_REF_NAME}" in
47+ # +([0-9]).+([0-9]).+([0-9]) )
48+ # echo 'validTag=true' >> $GITHUB_OUTPUT
49+ # echo 'prerelease=false' >> $GITHUB_OUTPUT
50+ # echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
51+ # ;;
52+ # +([0-9]).+([0-9]).+([0-9])-@(beta|rc)*([0-9]) )
53+ # echo 'validTag=true' >> $GITHUB_OUTPUT
54+ # echo 'prerelease=true' >> $GITHUB_OUTPUT
55+ # echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
56+ # ;;
57+ # *) echo 'validTag=false' >> $GITHUB_OUTPUT ;;
58+ # esac
5959
60- - name : Download Build Artifacts
61- uses : actions/download-artifact@v4
62- if : fromJSON(steps.check.outputs.validTag)
63- id : download
60+ # - name: Download Build Artifacts
61+ # uses: actions/download-artifact@v4
62+ # if: fromJSON(steps.check.outputs.validTag)
63+ # id: download
6464
65- - name : Rename Files
66- if : fromJSON(steps.check.outputs.validTag)
67- run : |
68- : Rename Files
69- if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
70- shopt -s extglob
71- shopt -s nullglob
65+ # - name: Rename Files
66+ # if: fromJSON(steps.check.outputs.validTag)
67+ # run: |
68+ # : Rename Files
69+ # if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
70+ # shopt -s extglob
71+ # shopt -s nullglob
7272
73- root_dir="$(pwd)"
74- commit_hash="${GITHUB_SHA:0:9}"
73+ # root_dir="$(pwd)"
74+ # commit_hash="${GITHUB_SHA:0:9}"
7575
76- variants=(
77- 'windows-x64;zip|exe'
78- 'macos-universal;tar.xz|pkg'
79- 'ubuntu-24.04-x86_64;tar.xz|deb|ddeb'
80- 'sources;tar.xz'
81- )
76+ # variants=(
77+ # 'windows-x64;zip|exe'
78+ # 'macos-universal;tar.xz|pkg'
79+ # 'ubuntu-24.04-x86_64;tar.xz|deb|ddeb'
80+ # 'sources;tar.xz'
81+ # )
8282
83- for variant_data in "${variants[@]}"; do
84- IFS=';' read -r variant suffix <<< "${variant_data}"
83+ # for variant_data in "${variants[@]}"; do
84+ # IFS=';' read -r variant suffix <<< "${variant_data}"
8585
86- candidates=(*-${variant}-${commit_hash}/@(*|*-dbgsym).@(${suffix}))
86+ # candidates=(*-${variant}-${commit_hash}/@(*|*-dbgsym).@(${suffix}))
8787
88- for candidate in "${candidates[@]}"; do
89- mv "${candidate}" "${root_dir}"
90- done
91- done
88+ # for candidate in "${candidates[@]}"; do
89+ # mv "${candidate}" "${root_dir}"
90+ # done
91+ # done
9292
93- - name : Generate Checksums
94- if : fromJSON(steps.check.outputs.validTag)
95- run : |
96- : Generate Checksums
97- if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
98- shopt -s extglob
93+ # - name: Generate Checksums
94+ # if: fromJSON(steps.check.outputs.validTag)
95+ # run: |
96+ # : Generate Checksums
97+ # if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
98+ # shopt -s extglob
9999
100- echo "### Checksums" > ${{ github.workspace }}/CHECKSUMS.txt
101- for file in ${{ github.workspace }}/@(*.exe|*.deb|*.ddeb|*.pkg|*.tar.xz|*.zip); do
102- echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ github.workspace }}/CHECKSUMS.txt
103- done
100+ # echo "### Checksums" > ${{ github.workspace }}/CHECKSUMS.txt
101+ # for file in ${{ github.workspace }}/@(*.exe|*.deb|*.ddeb|*.pkg|*.tar.xz|*.zip); do
102+ # echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ github.workspace }}/CHECKSUMS.txt
103+ # done
104104
105- - name : Create Release
106- if : fromJSON(steps.check.outputs.validTag)
107- id : create_release
108- uses : softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564
109- with :
110- draft : true
111- prerelease : ${{ fromJSON(steps.check.outputs.prerelease) }}
112- tag_name : ${{ steps.check.outputs.version }}
113- name : ${{ needs.build-project.outputs.pluginName }} ${{ steps.check.outputs.version }}
114- body_path : ${{ github.workspace }}/CHECKSUMS.txt
115- files : |
116- ${{ github.workspace }}/*.exe
117- ${{ github.workspace }}/*.zip
118- ${{ github.workspace }}/*.pkg
119- ${{ github.workspace }}/*.deb
120- ${{ github.workspace }}/*.ddeb
121- ${{ github.workspace }}/*.tar.xz
105+ # - name: Create Release
106+ # if: fromJSON(steps.check.outputs.validTag)
107+ # id: create_release
108+ # uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564
109+ # with:
110+ # draft: true
111+ # prerelease: ${{ fromJSON(steps.check.outputs.prerelease) }}
112+ # tag_name: ${{ steps.check.outputs.version }}
113+ # name: ${{ needs.build-project.outputs.pluginName }} ${{ steps.check.outputs.version }}
114+ # body_path: ${{ github.workspace }}/CHECKSUMS.txt
115+ # files: |
116+ # ${{ github.workspace }}/*.exe
117+ # ${{ github.workspace }}/*.zip
118+ # ${{ github.workspace }}/*.pkg
119+ # ${{ github.workspace }}/*.deb
120+ # ${{ github.workspace }}/*.ddeb
121+ # ${{ github.workspace }}/*.tar.xz
0 commit comments