Skip to content

Commit

Permalink
Add release job to the GH action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wregglesworth committed Apr 15, 2022
1 parent 07088c2 commit c259ced
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 38 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Go

on:
push:
tags:
- v*
branches:
- master
- main
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest

release:
if: startsWith(github.ref, 'refs/tags/')
name: cut release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest

- uses: actions/setup-go@v3
with:
go-version: '1.18'
check-latest: true

- name: Build
run: go build .

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
road-runner
38 changes: 0 additions & 38 deletions .github/workflows/golangci-lint.yml

This file was deleted.

0 comments on commit c259ced

Please sign in to comment.