- 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
fi
if [ -z "$(git config --get user.email)" ]; then
- git config user.email "<dracutng@gombos.dev>"
+ git config user.email "<dracutng@localhost.localdomain>"
fi
# Check in AUTHORS and NEWS.md
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