From 2adc400e80847ed5f90616d21ceaf37446b9876b Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 11 Jul 2022 14:36:06 +0200 Subject: [PATCH] build: Add workflow to create release from tags Let's automate the release process. The trigger to build a release is the release tag. Signed-off-by: Daniel Wagner --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..db84ef52 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Releases + +on: + push: + branches: [ master ] + tags: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + - uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} -- 2.50.1