summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorДамјан Георгиевски <gdamjan@gmail.com>2023-03-30 14:21:54 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-04-01 00:44:50 +0100
commit86c20937c29da637878a1282444b057bc1a519fb (patch)
tree47d4f8b6c1317013b7cd2209734af42a041f0d7e /.github
parent02c914efe6d2049ed947a53539a30b24ccde3820 (diff)
downloadsystemd-86c20937c29da637878a1282444b057bc1a519fb.tar.gz
add a github workflow action to make a release from tags
make a github release for every tag that starts with `v*`, and a pre-release if the tag contains "-rc". on the 'systemd/systemd' repo, the "Release" will be draft, so that the release manager can fill up the notes manually. on 'systemd/systemd-stable' the release will be created immediately. info about the action used: https://github.com/softprops/action-gh-release
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/make_release.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/make_release.yml b/.github/workflows/make_release.yml
new file mode 100644
index 0000000000..47dbbea374
--- /dev/null
+++ b/.github/workflows/make_release.yml
@@ -0,0 +1,18 @@
+name: Make a Github release
+
+on:
+ push:
+ tags:
+ - "v*"
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Release
+ uses: softprops/action-gh-release@v1
+ with:
+ prerelease: ${{ contains(github.ref_name, '-rc') }}
+ draft: ${{ github.repository == 'systemd/systemd' }}