-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.62 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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Release
on:
push:
tags:
- v*
env:
PIPENV_NOSPIN: "true"
jobs:
build-linux-x86_64:
name: Build Linux x86_64 Binary
runs-on: ubuntu-18.04
container:
image: python:3.7.5
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build Binary
run: |
git config --global user.name ci
git config --global user.email ci
pip install pipenv
make
- name: Upload Binary
uses: actions/upload-artifact@v1
with:
name: asgard-Linux-x86_64
path: dist/asgard
create-release:
name: Create Release
needs:
- build-linux-x86_64
runs-on: ubuntu-18.04
steps:
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Download Binary (Linux-x86_64)
uses: actions/download-artifact@v1
with:
name: asgard-Linux-x86_64
path: ./asgard-Linux-x86_64
- name: Upload Release Asset (Linux-x86_64)
id: upload-release-asset-linux-x86_64
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./asgard-Linux-x86_64/asgard
asset_name: asgard-Linux-x86_64
asset_content_type: application/octet-stream