build: releases with actions and docker

This commit is contained in:
Ludvig Lundgren 2021-08-11 15:41:09 +02:00
parent 773e57afe6
commit 2e8d0950c1
6 changed files with 191 additions and 0 deletions

44
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,44 @@
name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'
-
name: Build web
run: |
cd web && yarn install
CI= yarn build
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}