Create tag.yml

This commit is contained in:
Alex Janka 2024-01-15 12:58:33 +11:00 committed by GitHub
parent faf1d0b40c
commit 2dab738d31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
.github/workflows/tag.yml vendored Normal file
View file

@ -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 }}"