From 4d7d57c4ea2d8abd6556c7220b664a8c1abf7cb8 Mon Sep 17 00:00:00 2001 From: staticdev Date: Sat, 18 Jan 2025 17:30:42 +0100 Subject: [PATCH] Fix trigger for release --- .github/workflows/release.yml | 9 +++------ CONTRIBUTING.md | 9 +++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2cc832c..27f99e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,9 @@ name: Release on: - workflow_dispatch: - inputs: - tags: - description: Release Tag - required: true - type: string + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" jobs: release: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d748c65..716d060 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -117,3 +117,12 @@ This will allow a chance to talk it over with the owners and validate your appro [code of conduct]: CODE_OF_CONDUCT.md + +## How to release a new version + +Just push a tag starting with v and using semantic versioning. Eg. + +```sh +git tag v2.0.0 +git push --tags +```