Skip to content

Commit

Permalink
build on pr but do not deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncooper committed Sep 24, 2024
1 parent 70aca65 commit 6b4c81f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: goreleaser

on:
pull_request:

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
environment: goreleaser
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Run GoReleaser (Build)
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: build --clean
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: goreleaser

on:
pull_request:
push:
branches:
- main
tags:
- "*"

Expand Down

0 comments on commit 6b4c81f

Please sign in to comment.