Skip to content

Merge branch 'release/0.11.0' #35

Merge branch 'release/0.11.0'

Merge branch 'release/0.11.0' #35

Workflow file for this run

name: CI
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test ./...
release:
runs-on: ubuntu-latest
needs: test
if: startsWith(github.event.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
# Required to build changeleg
- name: Unshallow
run: git fetch --prune --unshallow
# Setup go
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
# Runs the goreleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: v1.6.3
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}