Skip to content

Commit

Permalink
Build: Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zsrv committed Dec 9, 2023
1 parent c31fc35 commit 3e7a463
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
name: release
name: main

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '>=1.20.0'
cache: true
go-version-file: 'go.mod'
- run: go mod tidy
- name: Run tests
run: go test -short -v ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
if: success() && startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
version: latest
Expand Down

0 comments on commit 3e7a463

Please sign in to comment.