compose/.github/workflows/release.yaml

35 lines
748 B
YAML

name: Releaser
on:
push:
tags:
- "v*"
jobs:
upload-release:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: make -f builder.Makefile package
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}