mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-07 18:53:00 +00:00
41 lines
859 B
YAML
41 lines
859 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
tags: [ 'v*' ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17
|
|
|
|
- name: Test
|
|
run: make build test
|
|
|
|
- name: Distribution
|
|
run: make distribution
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
files: |
|
|
release/webhookd-linux-amd64.tgz
|
|
release/webhookd-linux-arm64.tgz
|
|
release/webhookd-linux-arm.tgz
|
|
release/webhookd-darwin-amd64.tgz
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|