github.com/aiven/aiven-go-client@v1.36.0/.github/workflows/releaser.yml (about) 1 name: Releaser 2 3 on: 4 push: 5 branches: 6 - main 7 paths: 8 - "**.go" 9 - "**/go.mod" 10 - "**/go.sum" 11 workflow_dispatch: {} 12 13 jobs: 14 releaser: 15 runs-on: ubuntu-latest 16 steps: 17 - uses: actions/checkout@v3 18 with: 19 fetch-depth: 0 20 - id: sha 21 run: echo "sha=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT 22 - id: version 23 uses: anothrNick/github-tag-action@1.61.0 24 env: 25 GITHUB_TOKEN: ${{ github.token }} 26 WITH_V: true 27 - uses: softprops/action-gh-release@v1 28 with: 29 tag_name: ${{ steps.version.outputs.new_tag }} 30 name: ${{ steps.version.outputs.new_tag }} 31 body: auto-generated release for commit ${{ steps.sha.outputs.sha }}