Skip to content

Commit

Permalink
Correct tag build conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Mar 8, 2020
1 parent ceb4cec commit 916851e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: build
on: [ push ]
on: [ push, create ]

jobs:
build:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
GOARCH=amd64 GOOS=linux make && mv dist/dots{,-linux-amd64}
- name: Release latest master
if: startsWith(github.ref, 'refs/heads')
if: github.event_name == 'push'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -56,7 +56,7 @@ jobs:
${{ env.GO_WORKSPACE }}/dist/dots-windows-amd64.exe
- name: Release tagged version
if: startsWith(github.ref, 'refs/tags')
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags')
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 916851e

Please sign in to comment.