Skip to content

Commit

Permalink
ci(semantic-release): changed to go-semantic-release
Browse files Browse the repository at this point in the history
to reduce reliance on node, switched to a go-centric semantic release
  • Loading branch information
drewfugate committed Mar 5, 2024
1 parent 6109530 commit 9b3a53e
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 7,539 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: golangci/golangci-lint-action@v3
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- run: go test -v ./...
release:
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: go-semantic-release/action@v1
with:
hooks: goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 changes: 0 additions & 33 deletions .github/workflows/release.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
builds:
- env:
- CGO_ENABLED=0
targets:
- linux_amd64
- darwin_amd64
- darwin_arm64
main: ./
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -extldflags '-static'
- -s -w
- -X main.version={{.Version}}
- -X main.commitSHA={{.FullCommit}}
- -X main.buildDate={{.Date}}
Loading

0 comments on commit 9b3a53e

Please # to comment.