Skip to content

Commit

Permalink
[flytectl] Add goreleaser dry-run job
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario committed May 11, 2024
1 parent ee6037b commit e9a2f57
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/flytectl-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Flytectl checks

on:
pull_request:
paths-ignore:
- "docs/**"
- "boilerplate/**"

jobs:
dry_run_goreleaser:
name: Dry Run Goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: "0"
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run GoReleaser dry run
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser-pro
version: latest
args: --snapshot --skip-publish --rm-dist -f flytectl/.goreleaser.yml
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
6 changes: 6 additions & 0 deletions flytectl/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
project_name: flytectl

monorepo:
tag_prefix: flytectl/
dir: flytectl

before:
hooks:
- go mod download
Expand Down

0 comments on commit e9a2f57

Please sign in to comment.