Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kamushadenes committed Feb 25, 2025
1 parent 5d11c5f commit f215a22
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
name: Create Release

on:
push:
tags:
- "v*"
workflow_call:
inputs:
current-tag:
description: The tag to build
required: true
type: string
extra_args:
description: Extra args for go-releaser, for example '--snapshot'
required: false
type: string
workflow_dispatch:
inputs:
current-tag:
description: The tag to build
required: true
type: string
extra_args:
description: Extra args for go-releaser, for example '--snapshot'
required: false
type: string

permissions:
contents: write
Expand Down Expand Up @@ -44,7 +56,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --clean
args: release --clean ${{ inputs.extra_args }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ inputs.current-tag }}

0 comments on commit f215a22

Please sign in to comment.