github.com/cosmos/cosmos-sdk@v0.50.10/.github/workflows/release.yml (about)

     1  name: Release
     2  # This workflow helps with creating releases.
     3  # This job will only be triggered when a tag (vX.X.x) is pushed
     4  on:
     5    push:
     6      # Sequence of patterns matched against refs/tags
     7      tags:
     8        - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
     9  
    10  permissions:
    11    contents: read
    12  
    13  jobs:
    14    release:
    15      permissions:
    16        contents: write # for goreleaser/goreleaser-action to create a GitHub release
    17      runs-on: ubuntu-latest
    18      steps:
    19        - uses: actions/checkout@v4
    20        - name: Install Go
    21          uses: actions/setup-go@v4
    22          with:
    23            go-version: "1.21"
    24            check-latest: true
    25        - name: Unshallow
    26          run: git fetch --prune --unshallow
    27        - name: Create release
    28          uses: goreleaser/goreleaser-action@v3
    29          with:
    30            args: release --clean --release-notes ./RELEASE_NOTES.md
    31          env:
    32            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    33  
    34    release-success:
    35      needs: release
    36      if: ${{ success() }}
    37      runs-on: ubuntu-latest
    38      steps:
    39        - name: Notify Slack on success
    40          uses: rtCamp/action-slack-notify@v2.2.1
    41          env:
    42            SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
    43            SLACK_CHANNEL: cosmos-tech
    44            SLACK_USERNAME: Cosmos SDK Release Bot
    45            SLACK_ICON: https://avatars.githubusercontent.com/t/5997665?size=64
    46            SLACK_COLOR: good
    47            SLACK_TITLE: "Cosmos SDK ${{ github.ref_name }} is tagged :tada:"
    48            SLACK_MESSAGE: "@channel :point_right: https://github.com/cosmos/cosmos-sdk/releases/tag/${{ github.ref_name }}"
    49            SLACK_FOOTER: ""
    50            SLACK_LINK_NAMES: true
    51            MSG_MINIMAL: true