forked from Nature40/tRackIT-OS
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (55 loc) · 2.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build tRackIT-OS Images
on: push
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
build-tRackIT-OS:
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive
token: ${{ secrets.PAT_JONASHOECHST }}
- name: Run tRackIT-OS.Pifile
uses: Nature40/[email protected]
with:
pifile: tRackIT-OS.Pifile
- name: Package tRackIT-OS-arm64-${{github.ref_name}}.zip
if: startsWith(github.ref, 'refs/tags/')
run: |
mv tRackIT-OS-arm64.img tRackIT-OS-arm64-${{github.ref_name}}.img
zip tRackIT-OS-arm64-${{github.ref_name}}.zip tRackIT-OS-arm64-${{github.ref_name}}.img
- name: Upload Release tRackIT-OS-arm64-${{github.ref_name}}.zip
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{github.ref_name}} tRackIT-OS-arm64-${{github.ref_name}}.zip
build-BatRack-OS:
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive
token: ${{ secrets.PAT_JONASHOECHST }}
- name: Run BatRack-OS.Pifile
uses: Nature40/[email protected]
with:
pifile: BatRack-OS.Pifile
- name: Package BatRack-OS-armhf-${{github.ref_name}}.zip
if: startsWith(github.ref, 'refs/tags/')
run: |
mv BatRack-OS-armhf.img BatRack-OS-armhf-${{github.ref_name}}.img
zip BatRack-OS-armhf-${{github.ref_name}}.zip BatRack-OS-armhf-${{github.ref_name}}.img
- name: Upload Release BatRack-OS-armhf-${{github.ref_name}}.zip
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{github.ref_name}} BatRack-OS-armhf-${{github.ref_name}}.zip