-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.62 KB
/
release.yaml
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: Add Binaries to Release
on:
release:
types:
- published
jobs:
add_binaries:
name: Add Binaries
runs-on: ubuntu-latest
steps:
- name: Get latest release
id: get_release
uses: bruceadams/get-release@v1.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download release binaries
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_and_test.yaml
event: push
path: ./binaries
- name: Add Windows binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./binaries/windows-latest-build/databind.exe
asset_name: databind-win.exe
asset_content_type: application/octet-stream
- name: Add macOS binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./binaries/macos-latest-build/databind
asset_name: databind-mac
asset_content_type: application/octet-stream
- name: Add Linux binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./binaries/ubuntu-latest-build/databind
asset_name: databind-linux
asset_content_type: application/octet-stream