sigs.k8s.io/kubebuilder/v3@v3.14.0/.github/workflows/release.yml (about)

     1  name: release
     2  on:
     3    push:
     4      tags:
     5        - '*'
     6  
     7  jobs:
     8    goreleaser:
     9      runs-on: ubuntu-latest
    10      steps:
    11        - name: Checkout
    12          uses: actions/checkout@v4
    13          with:
    14            fetch-depth: 0
    15        - name: Fetch all tags
    16          run: git fetch --force --tags
    17        - name: Set up Go
    18          uses: actions/setup-go@v5
    19          with:
    20            go-version: '~1.21'
    21        - name: Run GoReleaser
    22          uses: goreleaser/goreleaser-action@v5
    23          with:
    24            version: v1.11.2
    25            args: release -f ./build/.goreleaser.yml --rm-dist
    26          env:
    27            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    28        - name: Upload assets
    29          uses: actions/upload-artifact@v4
    30          with:
    31            name: kubebuilder
    32            path: dist/*
    33            if-no-files-found: error