Skip to content

Commit

Permalink
Correct tag releases
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Mar 8, 2020
1 parent c8e975d commit a507141
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: build
on: [ push, create ]
on:
push:
branches: [ releases/2.x ]
tags: [ 'v*' ]

jobs:
build:
Expand Down Expand Up @@ -42,8 +45,8 @@ jobs:
GOARCH=amd64 GOOS=linux make && mv dist/dots{,-linux-amd64}
- name: Release latest master
if: github.event_name == 'push'
uses: marvinpinto/action-automatic-releases@latest
if: startsWith(github.ref, 'refs/heads')
uses: marvinpinto/action-automatic-releases@v0.3.0
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: dev-build
Expand All @@ -56,12 +59,11 @@ jobs:
${{ env.GO_WORKSPACE }}/dist/dots-windows-amd64.exe
- name: Release tagged version
if: github.event_name == 'create'
uses: marvinpinto/action-automatic-releases@latest
if: startsWith(github.ref, 'refs/tags')
uses: marvinpinto/action-automatic-releases@v0.3.0
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.ref }}
title: dots ${{ github.ref }}
prerelease: false
files: |
${{ env.GO_WORKSPACE }}/scripts/bootstrap
${{ env.GO_WORKSPACE }}/dist/dots-linux-amd64
Expand Down

0 comments on commit a507141

Please sign in to comment.