Skip to content

Commit 85df12f

Browse files
committed
ci: disable automated releases
1 parent 91ab0fa commit 85df12f

2 files changed

Lines changed: 157 additions & 157 deletions

File tree

.forgejo/workflows/push.yaml

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -29,90 +29,90 @@ jobs:
2929
permissions:
3030
contents: read
3131

32-
create-release:
33-
name: Create Release
34-
if: forgejo.ref_type == 'tag'
35-
runs-on: ubuntu-24.04
36-
needs: build-project
37-
defaults:
38-
run:
39-
shell: bash
40-
steps:
41-
- name: Check Release Tag
42-
id: check
43-
run: |
44-
: Check Release Tag
45-
if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
46-
shopt -s extglob
32+
# create-release:
33+
# name: Create Release
34+
# if: forgejo.ref_type == 'tag'
35+
# runs-on: ubuntu-24.04
36+
# needs: build-project
37+
# defaults:
38+
# run:
39+
# shell: bash
40+
# steps:
41+
# - name: Check Release Tag
42+
# id: check
43+
# run: |
44+
# : Check Release Tag
45+
# if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
46+
# shopt -s extglob
4747

48-
case "${GITHUB_REF_NAME}" in
49-
+([0-9]).+([0-9]).+([0-9]) )
50-
echo 'validTag=true' >> $FORGEJO_OUTPUT
51-
echo 'prerelease=false' >> $FORGEJO_OUTPUT
52-
echo "version=${GITHUB_REF_NAME}" >> $FORGEJO_OUTPUT
53-
;;
54-
+([0-9]).+([0-9]).+([0-9])-@(beta|rc)*([0-9]) )
55-
echo 'validTag=true' >> $FORGEJO_OUTPUT
56-
echo 'prerelease=true' >> $FORGEJO_OUTPUT
57-
echo "version=${GITHUB_REF_NAME}" >> $FORGEJO_OUTPUT
58-
;;
59-
*) echo 'validTag=false' >> $FORGEJO_OUTPUT ;;
60-
esac
48+
# case "${FORGEJO_REF_NAME}" in
49+
# +([0-9]).+([0-9]).+([0-9]) )
50+
# echo 'validTag=true' >> $FORGEJO_OUTPUT
51+
# echo 'prerelease=false' >> $FORGEJO_OUTPUT
52+
# echo "version=${FORGEJO_REF_NAME}" >> $FORGEJO_OUTPUT
53+
# ;;
54+
# +([0-9]).+([0-9]).+([0-9])-@(beta|rc)*([0-9]) )
55+
# echo 'validTag=true' >> $FORGEJO_OUTPUT
56+
# echo 'prerelease=true' >> $FORGEJO_OUTPUT
57+
# echo "version=${FORGEJO_REF_NAME}" >> $FORGEJO_OUTPUT
58+
# ;;
59+
# *) echo 'validTag=false' >> $FORGEJO_OUTPUT ;;
60+
# esac
6161

62-
- name: Download Build Artifacts
63-
uses: https://code.forgejo.org/forgejo/download-artifact@v4
64-
if: fromJSON(steps.check.outputs.validTag)
65-
id: download
62+
# - name: Download Build Artifacts
63+
# uses: https://code.forgejo.org/forgejo/download-artifact@v4
64+
# if: fromJSON(steps.check.outputs.validTag)
65+
# id: download
6666

67-
- name: Rename Files
68-
if: fromJSON(steps.check.outputs.validTag)
69-
run: |
70-
: Rename Files
71-
if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
72-
shopt -s extglob
73-
shopt -s nullglob
67+
# - name: Rename Files
68+
# if: fromJSON(steps.check.outputs.validTag)
69+
# run: |
70+
# : Rename Files
71+
# if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
72+
# shopt -s extglob
73+
# shopt -s nullglob
7474

75-
root_dir="$(pwd)"
76-
commit_hash="${FORGEJO_SHA:0:9}"
75+
# root_dir="$(pwd)"
76+
# commit_hash="${FORGEJO_SHA:0:9}"
7777

78-
variants=(
79-
'windows-x64;zip|exe'
80-
'macos-universal;tar.xz|pkg'
81-
'ubuntu-24.04-x86_64;tar.xz|deb|ddeb'
82-
'sources;tar.xz'
83-
)
78+
# variants=(
79+
# 'windows-x64;zip|exe'
80+
# 'macos-universal;tar.xz|pkg'
81+
# 'ubuntu-24.04-x86_64;tar.xz|deb|ddeb'
82+
# 'sources;tar.xz'
83+
# )
8484

85-
for variant_data in "${variants[@]}"; do
86-
IFS=';' read -r variant suffix <<< "${variant_data}"
85+
# for variant_data in "${variants[@]}"; do
86+
# IFS=';' read -r variant suffix <<< "${variant_data}"
8787

88-
candidates=(*-${variant}-${commit_hash}/@(*|*-dbgsym).@(${suffix}))
88+
# candidates=(*-${variant}-${commit_hash}/@(*|*-dbgsym).@(${suffix}))
8989

90-
for candidate in "${candidates[@]}"; do
91-
mv "${candidate}" "${root_dir}"
92-
done
93-
done
90+
# for candidate in "${candidates[@]}"; do
91+
# mv "${candidate}" "${root_dir}"
92+
# done
93+
# done
9494

95-
- name: Generate Checksums
96-
if: fromJSON(steps.check.outputs.validTag)
97-
run: |
98-
: Generate Checksums
99-
if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
100-
shopt -s extglob
95+
# - name: Generate Checksums
96+
# if: fromJSON(steps.check.outputs.validTag)
97+
# run: |
98+
# : Generate Checksums
99+
# if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
100+
# shopt -s extglob
101101

102-
echo "### Checksums" > ${{ forgejo.workspace }}/CHECKSUMS.txt
103-
mkdir -p artifacts
104-
for file in ${{ forgejo.workspace }}/@(*.exe|*.deb|*.ddeb|*.pkg|*.tar.xz|*.zip); do
105-
echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ forgejo.workspace }}/CHECKSUMS.txt
106-
mv "${file}" artifacts
107-
done
102+
# echo "### Checksums" > ${{ forgejo.workspace }}/CHECKSUMS.txt
103+
# mkdir -p artifacts
104+
# for file in ${{ forgejo.workspace }}/@(*.exe|*.deb|*.ddeb|*.pkg|*.tar.xz|*.zip); do
105+
# echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ forgejo.workspace }}/CHECKSUMS.txt
106+
# mv "${file}" artifacts
107+
# done
108108

109-
- name: Create Release
110-
if: fromJSON(steps.check.outputs.validTag)
111-
id: create_release
112-
uses: https://code.forgejo.org/actions/forgejo-release@v2.7.3
113-
with:
114-
direction: upload
115-
prerelease: ${{ fromJSON(steps.check.outputs.prerelease) }}
116-
title: v${{ steps.check.outputs.version }}
117-
release-notes-assistant: true
118-
release-dir: artifacts
109+
# - name: Create Release
110+
# if: fromJSON(steps.check.outputs.validTag)
111+
# id: create_release
112+
# uses: https://code.forgejo.org/actions/forgejo-release@v2.7.3
113+
# with:
114+
# direction: upload
115+
# prerelease: ${{ fromJSON(steps.check.outputs.prerelease) }}
116+
# title: v${{ steps.check.outputs.version }}
117+
# release-notes-assistant: true
118+
# release-dir: artifacts

.github/workflows/push.yaml

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)