-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.2 KB
/
push.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
on: push
name: build
jobs:
build-linux:
name: build on Ubuntu
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@master
- run: bin/build-linux-x86-64.sh
- uses: actions/upload-artifact@v1
with:
name: linux-x86-64
path: artifacts/linux-x86-64
build-macos:
name: build on macOS
runs-on: macOS-10.14
steps:
- uses: actions/checkout@master
- run: bin/build-macos-x86-64.sh
- uses: actions/upload-artifact@v1
with:
name: macos-x86-64
path: artifacts/macos-x86-64
deploy:
name: deploy
needs: [build-linux, build-macos]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v1
with:
name: linux-x86-64
path: artifacts/linux-x86-64
- uses: actions/download-artifact@v1
with:
name: macos-x86-64
path: artifacts/macos-x86-64
- run: bin/deploy.sh
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_KEY_PASSPHRASE: ${{ secrets.DEPLOY_KEY_PASSPHRASE }}