forked from kosmos-io/kosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.04 KB
/
release_binaries.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
## Workflow's name
#name: release kosmosctl for linux&darwin
#
## Workflow's trigger
on:
push:
tags:
- "v*.*.*"
# Workflow's jobs
jobs:
# job's id
release:
# job's name
name: release kosmosctl for linux&darwin
# allow to upload release binary
permissions: write-all
# the type of machine to run the job on
runs-on: ubuntu-20.04
# create steps
steps:
# step1: check out repository
- name: Check out git repository
uses: actions/checkout@v3
# step2: install go env
- name: Install Go
uses: actions/setup-go@v3
# step3: make binaries
- name: Make binaries
run: make release
# step4: create release
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
_output/release/kosmosctl-linux-amd64
_output/release/kosmosctl-linux-arm64
_output/release/kosmosctl-darwin-amd64
_output/release/kosmosctl-darwin-arm64