forked from Nature40/tRackIT-OS
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1.14 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
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