git-hooks-manager 0.4.2

An attempt to make sharing git hooks among team members easier
# from: https://mateuscosta.me/rust-releases-with-github-actions
name: Build & release

on:
  push:
    tags:
      - 'v*'

jobs:
  release:
    name: Build and Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Build project
        run: cargo build --release
#      - name: Bump version and push tag/create release point
#        uses: anothrNick/github-tag-action@1.17.2
#        env:
#          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#          WITH_V: true
#        id: bump_version
      - uses: little-core-labs/get-git-tag@v3.0.1
        id: tagName
        with:
          tagRegex: "(v.*)"  # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined.
      - name: Upload binary to release
        uses: svenstaro/upload-release-action@v1-release
        with:
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          file: target/release/git-hooks
          asset_name: git-hooks-linux-amd64
          tag: ${{ steps.tagName.outputs.tag }}
          overwrite: true
      - uses: katyo/publish-crates@v1
        with:
          registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}