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