Skip to content

Ghost ESP Version 1.4 #29

Ghost ESP Version 1.4

Ghost ESP Version 1.4 #29

Workflow file for this run

name: Build and Release PlatformIO Project
on:
release:
types: [created]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
board: [flipper_dev_board, dev_board_pro, marauder_minion]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Necessary to fetch all tags and history
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install PlatformIO
run: pip install platformio
- name: Build with PlatformIO
run: platformio run --environment ${{ matrix.board }}
- name: Tar artifacts
run: tar -czvf ${{ matrix.board }}.tar.gz -C .pio/build/${{ matrix.board }} firmware.bin partitions.bin bootloader.bin
# Upload assets to the newly created release
- name: Upload assets to Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.board }}.tar.gz
asset_name: ${{ matrix.board }}.tar.gz
tag: ${{ github.ref_name }} # Use the tag name of the created release
overwrite: true