From 86c20937c29da637878a1282444b057bc1a519fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Thu, 30 Mar 2023 14:21:54 +0200 Subject: [PATCH] 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 --- .github/workflows/make_release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/make_release.yml 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' }}