...

Text file src/github.com/pelletier/go-toml/v2/.github/workflows/release.yml

Documentation: github.com/pelletier/go-toml/v2/.github/workflows

     1name: release
     2on:
     3  push:
     4    tags:
     5      - "v2.*"
     6  workflow_call:
     7    inputs:
     8      args:
     9        description: "Extra arguments to pass goreleaser"
    10        default: ""
    11        required: false
    12        type: string
    13
    14jobs:
    15  release:
    16    runs-on: ubuntu-latest
    17    steps:
    18      - name: Checkout
    19        uses: actions/checkout@v4
    20        with:
    21          fetch-depth: 0
    22      - name: Set up Go
    23        uses: actions/setup-go@v4
    24        with:
    25          go-version: "1.21"
    26      - name: Login to GitHub Container Registry
    27        uses: docker/login-action@v3
    28        with:
    29          registry: ghcr.io
    30          username: ${{ github.actor }}
    31          password: ${{ secrets.GITHUB_TOKEN }}
    32      - name: Run GoReleaser
    33        uses: goreleaser/goreleaser-action@v3
    34        with:
    35          distribution: goreleaser
    36          version: latest
    37          args: release ${{ inputs.args }} --rm-dist
    38        env:
    39          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View as plain text