Skip to content

Commit

Permalink
ci(actions): dedupe release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucktay committed Mar 2, 2023
1 parent 114fcf8 commit a8a6484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 58 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- main
paths:
- "**.go"

pull_request:
branches:
- main
Expand All @@ -29,9 +30,9 @@ jobs:
strategy:
matrix:
go-version:
- "1.17"
- "1.18"
- "1.19"
- "1.20"
platform:
- ubuntu-latest
- macos-latest
Expand Down Expand Up @@ -91,7 +92,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out ${{ github.repository }} - all history
- name: Checkout ${{ github.repository }} - all history
uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -101,10 +102,10 @@ jobs:
git branch --all --contains '${{ github.ref }}' --no-column --format='%(refname)'
| grep -c '\/main$'
- name: Set up Go 1.19
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit a8a6484

Please sign in to comment.