-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (69 loc) · 1.94 KB
/
test_release_deploy.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
66
67
68
69
70
71
name: Test & Release
# on:
# push:
# tags:
# - "v*"
on: push
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
device:
[
approachs60,
approachs62,
d2bravo,
d2bravo_titanium,
d2charlie,
descentmk1,
fenix3,
fenix3_hr,
fr230,
fr235,
fr630,
fr645m,
fr735xt,
fr920xt,
vivoactive,
vivoactive3d,
vivoactive4,
vivoactive_hr,
]
# device: [fr235]
steps:
- uses: actions/checkout@v4
- name: Test on device ${{ matrix.device }}
id: run_tests
uses: adamjakab/action-connectiq-builder@v1
with:
operation: TEST
device: ${{ matrix.device }}
certificate: ${{ secrets.CONNECTIQ_DEVELOPER_KEY_BASE64}}
release:
needs: test
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Package App
id: package_app
uses: adamjakab/action-connectiq-builder@v1
with:
operation: PACKAGE
certificate: ${{ secrets.CONNECTIQ_DEVELOPER_KEY_BASE64}}
package_name: iHIIT_${{ github.ref_name }}.iq
- name: Check Package Path
run: |
echo "Relative Package Path: '${{ steps.package_app.outputs.package_path }}'"
echo "Absolute Package Path: '${{ github.workspace }}/${{ steps.package_app.outputs.package_path }}'"
ls -la "${{ github.workspace }}/${{ steps.package_app.outputs.package_path }}"
- name: Create New Release
id: create_release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
artifacts: ${{ github.workspace }}/${{ steps.package_app.outputs.package_path }}