Skip to content

Commit

Permalink
Add release workflow for tagged versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dviator authored Feb 3, 2021
1 parent 015f8a4 commit 678861f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/taggedVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "tagged release"

# Controls when the action will run.
on:
push:
tags:
- "v*"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Go environment
uses: actions/[email protected]
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
go-version: 1.14.4

# Runs a single command using the runners shell
- name: Build Linux
run: make build

# Runs a set of commands using the runners shell
- name: Build Windows
run: make windows-build

- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "Latest Release"
files: |
safecard-cli
safecard-cli.exe

0 comments on commit 678861f

Please sign in to comment.