Switch to simple upstream releases

This commit changes our release process from the model of having a
release commit (and pull request) which also updated the NEWS.md file
and bumped the versions in the osbuild.spec and setup.py files to simply
pushing a tag.

After the tag (containing the release notes) is pushed, a GitHub
composite action is triggered that creates a GitHub release with the
contents of the git release tag. Furthermore the bumping of the version
number now always has to happen directly after a release to avoid having
to push a(n untested) commit to main for the release and this is also
handled by the GitHub composite action.

Finally packit pushes directly to dist-git now on pushing the release
tag, so no pull-request needs to be reviewed and merged anymore.
This commit is contained in:
Simon Steinbeiss 2021-10-15 17:24:12 +02:00 committed by Christian Kellner
parent d76db390c8
commit 4ea2915ef7
6 changed files with 18 additions and 1296 deletions

15
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: "Create GitHub release"
on:
push:
tags:
- "v[0-9]+"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Upstream release
uses: osbuild/release-action@main
with:
token: "${{ secrets.GITHUB_TOKEN }}"