forked from SashimiProject/sashimi-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.25 KB
/
Copy pathnodejs.yml
File metadata and controls
48 lines (43 loc) · 1.25 KB
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
name: Node CI
on:
push:
branches:
# long-lived branches
- master
pull_request:
branches:
- "*"
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
node-version: [12.16.1]
env: [GETH=true, PACKAGES=true, INTEGRATION=true]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: yarn
# - run: ${{ matrix.env }} npm run pkg:online
# env:
# CI: true
# - run: ls
- run: ${{ matrix.env }} npm run pkg:online-test
env:
CI: true
- run: mv build-online-test.tar.gz online-test.tar.gz
- name: S3 Upload
# You may pin to the exact commit or the version.
# uses: koraykoska/s3-upload-github-action@c24afca3fabd71531a531cd105110175766aa9d9
uses: koraykoska/s3-upload-github-action@0.1.3
env:
FILE: ./online-test.tar.gz
S3_ENDPOINT: 'ams3.digitaloceanspaces.com'
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}