-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (56 loc) · 1.71 KB
/
matrix.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
name: Build Proton
on:
push:
pull_request:
release:
types: [published]
jobs:
build:
name: ${{ matrix.os }} Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Setup MSBuild.exe
if: matrix.os == 'windows-latest'
uses: warrenbuckley/Setup-MSBuild@v1
- name: Setup Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ matrix.os }}-deps
- name: Dependencies
run: yarn
- name: Build
run: yarn package
- name: Prepare to Deploy
id: before_deploy
shell: bash
run: |
rm -rf ./release/*.blockmap
rm -rf ./release/*.zip
rm -rf ./release/*-unpacked
rm -rf ./release/mac
export NAME=$(ls release/proton-wallet*)
echo ::set-output name=file_name::${NAME:8}
- name: Store Build Artifact
uses: actions/upload-artifact@v1
with:
name: build_dir
path: ./release
- name: Upload to GH Release
if: github.event_name == 'release' && github.repository == 'turtlecoin/turtle-wallet-proton'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./release/${{ steps.before_deploy.outputs.file_name }}
asset_name: ${{ steps.before_deploy.outputs.file_name }}
asset_content_type: application/octet-stream