From 2dab738d316ffb512228bf67e8feba619b40f80a Mon Sep 17 00:00:00 2001 From: Alex Janka <9248071+italicsjenga@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:58:33 +1100 Subject: [PATCH] Create tag.yml --- .github/workflows/tag.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 0000000..89f3d9c --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,18 @@ +name: Tag latest version + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: butlerlogic/action-autotag@master + with: + regex_pattern: 'version ?= ?"([0-9\.]{5}([\+][\w\.0-9]+)?)"' + root: ./Cargo.toml + tag_prefix: "v" + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"