Add more advanced release workflow

This commit is contained in:
Michael Aldridge 2021-03-18 00:53:49 -07:00
parent 9415810db1
commit c02929e9e3
2 changed files with 22 additions and 10 deletions

View file

@ -1,4 +1,4 @@
name: docker name: release
on: on:
push: push:
@ -6,7 +6,25 @@ on:
- v* - v*
jobs: jobs:
main: goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up QEMU - name: Set up QEMU

View file

@ -1,14 +1,8 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before: before:
hooks: hooks:
- go mod vendor - go mod vendor
- ./scripts/vendor-licenses -gen > NOTICE
builds: builds:
- id: ldap - goos:
main: main.go
binary: ldap
goos:
- darwin - darwin
- freebsd - freebsd
- linux - linux
@ -37,4 +31,4 @@ changelog:
release: release:
github: github:
owner: NetAuth owner: NetAuth
name: ldap name: NetAuth