github.com/AbsaOSS/env-binder@v1.0.1/.github/workflows/tag.yaml (about)

     1  # Copyright 2021 The k8gb Contributors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  #
    15  # Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
    16  name: Tag
    17  
    18  on:
    19    push:
    20      paths-ignore:
    21        - '**.md'
    22        - '**_test.go'
    23        - '.github/workflows/**'
    24      branches:
    25        - master
    26    workflow_dispatch:
    27      branches:
    28        - master
    29  jobs:
    30    tag-build-publish:
    31      name: Tag
    32      runs-on: ubuntu-latest
    33      steps:
    34        - name: Checkout
    35          uses: actions/checkout@v2
    36          with:
    37            fetch-depth: "0" # make sure we get all commits!
    38  
    39        - name: Bump version and push tag
    40          id: bump
    41          uses: anothrNick/github-tag-action@1.36.0
    42          env:
    43            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    44            RELEASE_BRANCHES: master
    45            WITH_V: true
    46            DEFAULT_BUMP: patch
    47  #         PRERELEASE_SUFFIX: beta