-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.12 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
name: Compile Firmware
on: [push]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Compile application
id: compile
uses: particle-iot/compile-action@v1
with:
particle-platform-name: 'tracker'
device-os-version: '5.3.0'
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: firmware-artifact
path: |
${{ steps.compile.outputs.firmware-path }}
${{ steps.compile.outputs.target-path }}
release:
needs: [compile]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
if: ${{ github.ref == 'refs/heads/37-feat-semver' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
ref: master
- name: Set up NPM
uses: actions/setup-node@v4
- name: Set up Semantic Release
run: |
npm install --save-dev semantic-release