Skip to content

Commit

Permalink
add manual release action
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarr committed Jun 26, 2024
1 parent 7ba102b commit da9f4f4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: release

on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
release_ref:
description: "Tag"
required: true
default: "refs/tags/v0.0.0"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.release_ref }}
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.18

- name: Test
run: go test ./... -v

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_RELEASE_TOKEN: ${{ secrets.HOMEBREW_TAP_RELEASE_TOKEN }}

0 comments on commit da9f4f4

Please sign in to comment.