Merge pull request #117 from caos/workflow
chore: start improving external contribution
This commit is contained in:
commit
1bd04e9f36
7 changed files with 111 additions and 3 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -1,11 +1,18 @@
|
|||
name: Release
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
tags-ignore:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-18.04
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['1.14', '1.15', '1.16']
|
||||
go: ['1.14', '1.15', '1.16', '1.17']
|
||||
name: Go ${{ matrix.go }} test
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -21,6 +28,7 @@ jobs:
|
|||
release:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: [test]
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue