2020-09-15 12:31:33 +02:00
|
|
|
name: Releaser
|
2020-05-18 21:35:58 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2020-06-15 17:41:59 +02:00
|
|
|
- "v*"
|
2020-05-18 21:35:58 +02:00
|
|
|
jobs:
|
|
|
|
upload-release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-12 10:36:09 +02:00
|
|
|
- name: Set up Go 1.15
|
2020-05-18 21:35:58 +02:00
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
2020-08-12 10:36:09 +02:00
|
|
|
go-version: 1.15
|
2020-05-18 21:35:58 +02:00
|
|
|
id: go
|
|
|
|
|
2021-01-07 19:44:10 +01:00
|
|
|
- name: Setup docker CLI
|
|
|
|
run: |
|
|
|
|
curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.2.tgz | tar xz
|
|
|
|
sudo cp ./docker/docker /usr/bin/ && rm -rf docker && docker version
|
|
|
|
|
2020-05-18 21:35:58 +02:00
|
|
|
- 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
|
2020-09-21 16:15:59 +02:00
|
|
|
run: make -f builder.Makefile package
|
2020-05-18 21:35:58 +02:00
|
|
|
|
|
|
|
- uses: ncipollo/release-action@v1
|
|
|
|
with:
|
2020-09-21 16:15:59 +02:00
|
|
|
artifacts: "dist/*"
|
2020-05-18 21:35:58 +02:00
|
|
|
prerelease: true
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|