Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Dec 2, 2024
1 parent f10e705 commit cc18a9c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
types: [published]
pull_request:
workflow_dispatch:
inputs:
run-on-tag:
description: 'Tag for release'
required: true

jobs:
# set up go version for use through pipelines, setting
Expand Down Expand Up @@ -87,6 +91,14 @@ jobs:

- run: git fetch --force --tags

- name: Checkout a given tag
if: github.event_name == 'workflow_dispatch'
run: git checkout ${{ inputs.run-on-tag }}

- name: Checkout a given tag
if: github.event_name == 'workflow_dispatch'
run: git checkout ${{ inputs.run-on-tag }}

- uses: actions/setup-go@v5
with:
go-version: ${{ needs.setup.outputs.go-version }}
Expand All @@ -100,13 +112,27 @@ jobs:

# Generate the binaries and release
- uses: goreleaser/goreleaser-action@v6
if: github.event_name == 'release'
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GORELEASER_CURRENT_TAG: ${{ github.event.release.tag_name }}

# Generate the binaries and release
- uses: goreleaser/goreleaser-action@v6
if: github.event_name == 'workflow_dispatch'
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GORELEASER_CURRENT_TAG: ${{ inputs.run-on-tag }}

upload-docs:
needs: goreleaser
Expand Down

0 comments on commit cc18a9c

Please sign in to comment.