github.com/ethersphere/bee/v2@v2.2.0/.github/workflows/release.yaml (about)

     1  name: Release
     2  
     3  on:
     4    push:
     5      branches-ignore:
     6        - '**'
     7      tags:
     8        - 'v*.*.*'
     9  
    10  jobs:
    11    goreleaser:
    12      runs-on: ubuntu-latest
    13      steps:
    14        - name: Checkout
    15          uses: actions/checkout@v4
    16          with:
    17            fetch-depth: 0
    18        - name: Setup Go
    19          uses: actions/setup-go@v5
    20          with:
    21            go-version-file: go.mod
    22        - name: Docker Hub and Quay Login
    23          run: |
    24            printf ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
    25            printf ${{ secrets.QUAY_PASSWORD }} | docker login --username ${{ secrets.QUAY_USERNAME }} quay.io --password-stdin
    26        - name: Set up QEMU
    27          uses: docker/setup-qemu-action@v3
    28        - name: Set up Docker Buildx
    29          uses: docker/setup-buildx-action@v3
    30        - name: Import GPG key
    31          run: |
    32            echo "$GPG_PRIVATE_KEY" | gpg --import --passphrase "$GPG_PASSPHRASE" --batch --allow-secret-key-import
    33          env:
    34            GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
    35            GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
    36        - name: Set the API version
    37          run: |
    38            echo "BEE_API_VERSION=$(grep '^  version:' openapi/Swarm.yaml | awk '{print $2}')" >> $GITHUB_ENV
    39        - name: Run GoReleaser
    40          uses: goreleaser/goreleaser-action@v6
    41          with:
    42            version: '~> v2'
    43            args: release --clean --timeout 1h
    44          env:
    45            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    46            HOMEBREW_TAP_PAT: ${{ secrets.GHA_PAT_BASIC }}
    47            SCOOP_PAT: ${{ secrets.GHA_PAT_BASIC }}
    48            GEMFURY_TOKEN: ${{ secrets.GEMFURY_TOKEN }}
    49            GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
    50            GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
    51            BEE_API_VERSION: ${{ env.BEE_API_VERSION }}