-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (51 loc) · 1.44 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Release-pipeline
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch Branch
id: branch
run: |
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw##*/}
echo "::set-output name=BRANCH_NAME::$branch"
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.13.7'
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install dependencies
if: steps.branch.outputs.BRANCH_NAME == 'main'
run: |
make deps
- name: Build binaries
if: steps.branch.outputs.BRANCH_NAME == 'main'
run: |
make release
- name: Generate Changelog
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
pullRequests: "false"
onlyLastTag: "true"
stripGeneratorNotice: "true"
issuesWoLabels: "true"
stripHeaders: "true"
- name: Release fuseml-core
uses: softprops/action-gh-release@v1
if: steps.branch.outputs.BRANCH_NAME == 'main'
with:
files: ./bin/*
body_path: ./CHANGELOG.md
prerelease: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}