Skip to content

Commit

Permalink
Add workflow to build and release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
greimela committed Jul 24, 2023
1 parent b8f05a9 commit da07139
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build

on:
push:
branches:
- "main"
tags:
- "v*"
pull_request:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: "1.20.4"
- run: go test -v -race
- uses: goreleaser/goreleaser-action@v4
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: "v1.18.2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ before:
# - go generate ./...
builds:
- env:
- CGO_ENABLED=0
- CGO_ENABLED=1
goos:
- linux
- windows
- darwin
goarch:
- amd64
dir: cmd/vault-plugin-secrets-bls
#archives:
# - replacements:
Expand Down

0 comments on commit da07139

Please sign in to comment.