-
Notifications
You must be signed in to change notification settings - Fork 323
37 lines (31 loc) · 971 Bytes
/
build.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
name: Build
on: push
jobs:
build-upload:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get -y install libusb-1.0-0 cmake srecord
pip install -U pyserial
- id: build
name: Build
run: |
fname=$(./scripts/build-firmware | tail -1)
echo "::set-output name=fname::$fname"
- uses: keithweaver/[email protected]
name: Copy build to AWS
with:
command: cp
source: build/${{ steps.build.outputs.fname }}
destination: s3://konnected-io/builds/
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: us-east-2