-
Notifications
You must be signed in to change notification settings - Fork 9
80 lines (74 loc) · 2.48 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Release binaries
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci-skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install
run: npm install
- name: Install Gapi CLI
run: npm i -g @gapi/cli @zeit/[email protected] [email protected]
- name: Build
run: npm run build-binary
- name: Build JS
run: npm run build
- name: Read package.json Version
uses: tyankatsu0105/read-package-version-actions@v1
id: version
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Firelink Linux to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./binaries/firelink-linux
asset_name: firelink-linux
asset_content_type: application/octet-stream
- name: Upload Firelink Windows to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./binaries/firelink-win.exe
asset_name: firelink-win.exe
asset_content_type: application/vnd.microsoft.portable-executable
- name: Upload Firelink MacOS to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./binaries/firelink-macos
asset_name: firelink-macos
asset_content_type: application/octet-stream
- name: Upload JS to Releases
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/main.js
asset_name: main.js
asset_content_type: text/javascript