Skip to content

Commit

Permalink
Support tag releases
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Mar 8, 2020
1 parent 135f8c8 commit c8e975d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .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,6 +42,7 @@ 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
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -53,3 +54,16 @@ jobs:
${{ env.GO_WORKSPACE }}/dist/dots-linux-amd64
${{ env.GO_WORKSPACE }}/dist/dots-macos-amd64
${{ env.GO_WORKSPACE }}/dist/dots-windows-amd64.exe
- name: Release tagged version
if: github.event_name == 'create'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.ref }}
title: dots ${{ github.ref }}
files: |
${{ env.GO_WORKSPACE }}/scripts/bootstrap
${{ env.GO_WORKSPACE }}/dist/dots-linux-amd64
${{ env.GO_WORKSPACE }}/dist/dots-macos-amd64
${{ env.GO_WORKSPACE }}/dist/dots-windows-amd64.exe

0 comments on commit c8e975d

Please sign in to comment.