diff options
author | Petr Štetiar <ynezz@true.cz> | 2023-10-19 04:09:25 +0000 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2023-11-02 14:44:49 +0000 |
commit | 592aacc3d9c08c5c61a0faa75729d6c27be80376 (patch) | |
tree | 59621a66540dc9cbc86c1129efdc7a3f52de4b02 | |
parent | 65a10c82305a311f2359fad7792dfd4b7455cd29 (diff) | |
download | upstream-592aacc3d9c08c5c61a0faa75729d6c27be80376.tar.gz upstream-592aacc3d9c08c5c61a0faa75729d6c27be80376.tar.bz2 upstream-592aacc3d9c08c5c61a0faa75729d6c27be80376.zip |
ci: add workflow for automated GitHub release
Implement a GitHub Actions workflow for automated project releases.
The workflow triggers on Git tags, ensuring that a GitHub release is
created whenever a new tag is pushed.
That new release is going to be created in draft and pre-release mode
and needs to be manually promoted to the proper release, once its
decided, that its good enough and prepared.
This is a start of a streamlined and consistent release process for
GitHub, reducing manual intervention.
Acked-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 280d9dd75874ef4c4e2407366eda987cda8efd25)
-rw-r--r-- | .github/workflows/github-release.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml new file mode 100644 index 0000000000..55d01f85cb --- /dev/null +++ b/.github/workflows/github-release.yml @@ -0,0 +1,24 @@ +name: Create GitHub release + +permissions: + contents: write + +on: + push: + tags: + - "v*" + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Release + uses: softprops/action-gh-release@v1 + with: + draft: true + prerelease: true |