Skip to content

Commit

Permalink
Create release stage with dependency on build
Browse files Browse the repository at this point in the history
  • Loading branch information
ihulsbus committed Sep 4, 2021
1 parent 8f2f1b7 commit 3582823
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Go

on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]

jobs:
build:
name: build
strategy:
matrix:
go-arch: [amd64, arm64]
Expand All @@ -25,7 +25,11 @@ jobs:

- name: Build
run: env GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go build -o ./build/jbackup-${{ matrix.go-os }}-${{ matrix.go-arch }} .

release:
name: release
needs: build
runs-on: ubuntu-latest
steps:
- name: publish release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 3582823

Please sign in to comment.