forked from flyteorg/flyte
-
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.
[monorepo] Move flytectl gh workflows to monorepo (flyteorg#5354)
* [flytectl] Add goreleaser dry-run job Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Use actions/checkout@v4 Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Add sandbox test and flytectl-release gh workflow Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Skip flyteidl release if releasing flytectl Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Add github token to flytectl release gh workflow Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> --------- Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
- Loading branch information
1 parent
307ed2c
commit 9493ada
Showing
4 changed files
with
91 additions
and
0 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,27 @@ | ||
name: Flytectl release | ||
|
||
on: | ||
push: | ||
tags: | ||
- flytectl/v*.*.* | ||
|
||
jobs: | ||
release: | ||
name: Goreleaser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.21" | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser-pro | ||
args: release --rm-dist -f flytectl/.goreleaser.yml | ||
env: | ||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} |
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
project_name: flytectl | ||
|
||
monorepo: | ||
tag_prefix: flytectl/ | ||
dir: flytectl | ||
|
||
before: | ||
hooks: | ||
- go mod download | ||
|