...

Text file src/github.com/okta/okta-sdk-golang/v2/.github/workflows/release.yml

Documentation: github.com/okta/okta-sdk-golang/v2/.github/workflows

     1# This GitHub action can publish assets for release when a tag is created.
     2# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
     3#
     4# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
     5# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
     6# secret. If you would rather own your own GPG handling, please fork this action
     7# or use an alternative one for key handling.
     8#
     9# You will need to pass the `--batch` flag to `gpg` in your signing step
    10# in `goreleaser` to indicate this is being used in a non-interactive mode.
    11#
    12name: release
    13on:
    14  push:
    15    branches: [ master ]
    16    tags:
    17      - 'v*'
    18jobs:
    19  goreleaser:
    20    runs-on: ubuntu-latest
    21    steps:
    22      -
    23        name: Checkout
    24        uses: actions/checkout@v2.4.0
    25      -
    26        name: Unshallow
    27        run: git fetch --prune --unshallow
    28      -
    29        name: Set up Go
    30        uses: actions/setup-go@v2
    31        with:
    32          go-version: 1.19
    33      -
    34        name: Run GoReleaser
    35        uses: goreleaser/goreleaser-action@v2.8.1
    36        with:
    37          version: latest
    38          args: release --rm-dist
    39        env:
    40          GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
    41          # GitHub sets this automatically
    42          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    43

View as plain text