-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (35 loc) · 1.02 KB
/
cd.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
name: 🕷 cd
on: [ release ]
jobs:
build_binary:
name: build-binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
version: '12'
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- run: yarn bundle
- run: yarn binary
- run: chmod -R ugo+x websight-*
- uses: JasonEtco/upload-to-release@master
name: upload-linux-binary
with:
args: 'websight-linux-x64 application/x-executable'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: JasonEtco/upload-to-release@master
name: upload-macOS-binary
with:
args: 'websight-darwin-x64 application/x-mach-binary'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: JasonEtco/upload-to-release@master
name: upload-windows-binary
with:
args: 'websight-windows-x64 application/vnd.microsoft.portable-executable'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}