forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.14 KB
/
create-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Create a flyte release
on:
workflow_dispatch:
inputs:
version:
description: 'version name. example v0.1.1'
required: true
jobs:
goreleaser:
name: Goreleaser
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/github-tag-action@1.17.2
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
WITH_V: true
CUSTOM_TAG: ${{ github.event.inputs.version }}
RELEASE_BRANCHES: master
- uses: actions/checkout@v2
with:
fetch-depth: "0"
ref: ${{ github.event.inputs.version }}
- name: build Release Menifest
run: |
make prepare_artifacts
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --release-notes=CHANGELOG/CHANGELOG-${{ github.event.inputs.version }}.md
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}