Add continuous integration workflow

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
This commit is contained in:
Gianluca Arbezzano
2020-11-18 10:55:42 +01:00
parent 45f593449a
commit 509524bd14
8 changed files with 136 additions and 95 deletions

View File

@ -4,7 +4,7 @@ on:
pull_request:
jobs:
validation:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code

33
.github/workflows/tags.yaml vendored Normal file
View File

@ -0,0 +1,33 @@
on:
push:
tags:
- "v*"
name: Create release
jobs:
release:
runs-on: ubuntu-latest
steps:
- run: sudo apt install -y libgpgme-dev libassuan-dev libdevmapper-dev
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.15.5"
- run: ./script/release-binaries.sh
name: get binaries
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./out/release/*"]'