Skip to content

Commit

Permalink
Merge pull request #12 from wide-vsix/action2
Browse files Browse the repository at this point in the history
action: Support release tag automation
  • Loading branch information
slankdev authored Oct 22, 2022
2 parents 48ce453 + b020ab2 commit cc93618
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: release tag

on:
push:
tags:
- 'v*'

jobs:
build:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: flowctl
asset_name: flowctl.linux-amd64
steps:
- name: set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
id: go
- name: checkout
uses: actions/checkout@v2
- name: download modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
- name: test
run: go test ./... -v
- name: build
run: go build -o ${{ matrix.artifact_name }} cmd/flowctl/main.go
- name: upload
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
#overwrite: true

0 comments on commit cc93618

Please sign in to comment.