Skip to content

Commit

Permalink
Changed build pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Arno Broekhof <[email protected]>
  • Loading branch information
arnobroekhof committed Oct 28, 2021
1 parent cf3040e commit d46bd40
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 23 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Master-Build
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.17'
- name: Test
run: make test-all

- name: Git Version
id: tag_version
uses: codacy/[email protected]
with:
prefix: v

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.version }}
release_name: Release ${{ steps.tag_version.outputs.version }}
22 changes: 0 additions & 22 deletions .github/workflows/push.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13.5
go-version: '1.17'
- name: goreleaser
uses: goreleaser/goreleaser-action@v1
with:
Expand Down

0 comments on commit d46bd40

Please sign in to comment.