The release builder

This commit is contained in:
jamesread 2021-11-17 13:43:27 +00:00
parent 8e3112ee16
commit 31411d0e95
1 changed files with 48 additions and 0 deletions

48
.github/workflows/build-tag.yml vendored Normal file
View File

@ -0,0 +1,48 @@
name: "Build Tag"
on:
push:
tags:
- '*'
jobs:
build-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.16.0'
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
- name: grpc
run: make grpc
- name: goreleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- name: Archive binaries
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/OliveTin*.*
- name: Archive integration tests
uses: actions/upload-artifact@v2
with:
name: integration-tests
path: integration-tests