diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35b1b0f..61e370f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,12 @@ name: Release on: push: tags: ["v*"] + workflow_dispatch: + inputs: + tag: + description: Git tag to release (e.g. v0.4.0) + required: true + type: string permissions: contents: write @@ -15,6 +21,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.tag) || github.ref }} - name: Set up Go uses: actions/setup-go@v5