Skip to content

+ relocate file for lost+found radiotracking files #7

+ relocate file for lost+found radiotracking files

+ relocate file for lost+found radiotracking files #7

name: Build BatRack OS
on:
push:
tags:
- "BatRack-OS-*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive
token: ${{ secrets.PAT_JONASHOECHST }}
- name: Run Base-armhf.Pifile
uses: Nature40/[email protected]
with:
pifile: Base-armhf.Pifile
- name: Run tRackIT-OS-armhf.Pifile
uses: Nature40/[email protected]
with:
pifile: tRackIT-OS-armhf.Pifile
- name: Run BatRack-OS.Pifile
uses: Nature40/[email protected]
with:
pifile: BatRack-OS.Pifile
- name: Set Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Rename BatRack-OS.img
run: mv BatRack-OS.img ${{ env.RELEASE_VERSION }}.img
- name: Package ${{ env.RELEASE_VERSION }}.zip
run: zip ${{ env.RELEASE_VERSION }}.zip ${{ env.RELEASE_VERSION }}.img
- name: Create GitHub release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: true
- name: Upload ${{ env.RELEASE_VERSION }}.zip to release
id: upload_batrack_os_zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.RELEASE_VERSION }}.zip
asset_name: ${{ env.RELEASE_VERSION }}.zip
asset_content_type: application/zip