-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Separate goreleaser and git release workflows
- Loading branch information
1 parent
9e0637d
commit 00c05f0
Showing
2 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: Goreleaser | ||
|
||
on: | ||
# Manual Trigger | ||
workflow_dispatch: | ||
inputs: | ||
dry-run: | ||
description: Dry Run | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
# Dry Run on any PR that changes this pipeline or that should ultimately trigger a release when merged | ||
pull_request: | ||
paths: | ||
- ".github/workflows/goreleaser.yaml" | ||
- "go.mod" | ||
- "go.sum" | ||
- "**/**.go" | ||
|
||
# "Wet" Run on any tag push | ||
push: | ||
tags: ["*"] | ||
|
||
jobs: | ||
goreleaser: | ||
uses: mirceanton/reusable-workflows/.github/workflows/reusable-go-release.yaml@2981539811fdf240b8f704ced3e88b0ef4e4f326 # v3.4.7 | ||
secrets: inherit | ||
with: | ||
dry-run: ${{ inputs.dry-run || github.event_name == 'pull_request' }} |