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