From: Laszlo Gombos Date: Sat, 8 Feb 2025 01:48:42 +0000 (-0500) Subject: fix(release): tagging and release generation is no longer automated X-Git-Tag: 107~65 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5c2864dc41c84f911132f0bba9cb50dbd35e27e1;p=thirdparty%2Fdracut-ng.git fix(release): tagging and release generation is no longer automated Create release commit on relese branch automatically, but leave the rest of the release creation process up to the project admins to allow manual review and intervention. We do not have a valid email address for the release automation, so let's make it obvious that it is just a placeholder email address. --- diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 143dd5a76..ab57e6275 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,11 +25,3 @@ jobs: - name: Build run: bash ${GITHUB_WORKSPACE}/tools/release.sh ${{ inputs.tag }} - - - name: Release - if: ${{ env.new_version }} - uses: softprops/action-gh-release@v2.2.1 - with: - tag_name: ${{ env.new_version }} - name: dracut-${{ env.new_version }} - body_path: ${{ github.workspace }}/release.md diff --git a/tools/release.sh b/tools/release.sh index 4d2797fcb..117f4515a 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -58,7 +58,7 @@ if [ -z "$(git config --get user.name)" ]; then fi if [ -z "$(git config --get user.email)" ]; then - git config user.email "" + git config user.email "" fi # Check in AUTHORS and NEWS.md @@ -69,17 +69,4 @@ if ! git push -u origin release; then exit $? fi -# Tag the release, validate the tag and push -KEYS=$(gpg --list-secret-keys --keyid-format=long 2> /dev/null) - -if [ -z "$KEYS" ]; then - echo "Could not find gpg or gpg secrets, not signing the git tag." - git tag "$NEW_VERSION" -m "$NEW_VERSION" -else - git tag -s "$NEW_VERSION" -m "$NEW_VERSION" - git tag -v "$NEW_VERSION" -fi - -# export new version to Github Action -# release will not be generated if pushing the tag failed -git push --tags && echo "new_version=${NEW_VERSION,,}" >> "${GITHUB_ENV}" +# tagging and release genaration is no longer automated