Skip to content

Commit

Permalink
Release a new version for each master merge (flyteorg#96)
Browse files Browse the repository at this point in the history
* release a new version in each master merge

Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Jun 16, 2021
1 parent 400d4b6 commit d98708d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 19 deletions.
63 changes: 63 additions & 0 deletions flytectl/.github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Master

on:
push:
branches:
- master

jobs:
bump-version:
name: Bump Version
if: github.event.head_commit.name != 'flyte-bot'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.bump-version.outputs.tag }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
id: bump-version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
WITH_V: true
DEFAULT_BUMP: patch

goreleaser:
name: Release flytectl
runs-on: ubuntu-latest
needs: [ bump-version ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Run GoReleaser dry run
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}

test:
name: Run tests and lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Unit Tests
uses: cedrickring/[email protected]
env:
GO111MODULE: "on"
with:
args: make install && make test_unit_codecov
- name: Lint
uses: cedrickring/[email protected]
env:
GO111MODULE: "on"
with:
args: make install && make lint
19 changes: 0 additions & 19 deletions flytectl/.github/workflows/release.yml

This file was deleted.

0 comments on commit d98708d

Please sign in to comment.