-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.33 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
name: Create Release
on:
workflow_dispatch: {}
jobs:
test:
needs: semantic-release
runs-on: ubuntu-latest
container:
image: flanksource/build-tools:v0.13.6
steps:
- uses: actions/checkout@v2
- run: make build
binary:
needs: semantic-release
runs-on: ubuntu-latest
env:
VERSION: v${{ needs.semantic-release.outputs.release-version }}
container:
image: flanksource/build-tools:v0.13.6
steps:
- uses: actions/checkout@v2
- run: make release
- name: Upload binaries to release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ needs.semantic-release.outputs.release-version }}
gzip: false
allow_override: true
files: >
./.bin/gitlab-multirepo-deployer
./.bin/gitlab-multirepo-deployer_darwin-amd64
./.bin/gitlab-multirepo-deployer_linux-amd64
semantic-release:
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.semantic.outputs.release-version }}
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
steps:
- uses: actions/checkout@v2
- uses: codfish/semantic-release-action@v1
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}