Skip to content

Commit

Permalink
Remove goreleaser on pull requests
Browse files Browse the repository at this point in the history
This will always fail for external contributors and is not what we want. The releases only need to happen on tags in the repository.
  • Loading branch information
albertomontesg committed May 23, 2022
1 parent f509edb commit ef39e24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 45 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/build-goreleaser.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Golang CI

on: [ push, pull_request ]
on: [push, pull_request]

jobs:
build:
strategy:
matrix:
go-version: [ 1.16.x ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
go-version: [1.18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
GOPATH: ${{ github.workspace }}
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,26 @@ name: Release
on:
push:
tags:
- '*'
- "*"

jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Registry
- name: Login to Docker Registry
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | \
docker login -u gaetancollaud --password-stdin \
&& docker info
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
go-version: 1.18
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down

0 comments on commit ef39e24

Please sign in to comment.