job release depends on job test

This commit is contained in:
Florian Forster 2019-11-15 15:41:08 +01:00
parent 3518c4722a
commit a52468a167
No known key found for this signature in database
GPG key ID: B03784B4B09FB794

View file

@ -1,7 +1,7 @@
name: Release
on: push
jobs:
test&build:
test:
runs-on: ubuntu-18.04
strategy:
matrix:
@ -16,6 +16,7 @@ jobs:
- run: go run main.go
release:
runs-on: ubuntu-18.04
needs: test
steps:
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2