Skip to content

Merge pull request #7 from drewstinnett/feature-edit-entry #18

Merge pull request #7 from drewstinnett/feature-edit-entry

Merge pull request #7 from drewstinnett/feature-edit-entry #18

Workflow file for this run

---
name: goreleaser
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
TZ: "America/New_York"
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
-
name: Tests
run: |
go mod tidy
go test ./...
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}