update base #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |