-
Notifications
You must be signed in to change notification settings - Fork 671
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 (#5354)
* [flytectl] Add goreleaser dry-run job Signed-off-by: Eduardo Apolinario <[email protected]> * Use actions/checkout@v4 Signed-off-by: Eduardo Apolinario <[email protected]> * Add sandbox test and flytectl-release gh workflow Signed-off-by: Eduardo Apolinario <[email protected]> * Skip flyteidl release if releasing flytectl Signed-off-by: Eduardo Apolinario <[email protected]> * Add github token to flytectl release gh workflow Signed-off-by: Eduardo Apolinario <[email protected]> --------- Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
- Loading branch information
1 parent
7b82397
commit 4dd5f3c
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 | ||
|