Skip to content

Build-Release

Build-Release #26

Workflow file for this run

name: Build-Release
on:
push:
branches: [main]
tags:
- "*"
jobs:
platformio-build:
runs-on: ubuntu-latest
container: fishros2/fishbot_tool:build_ubuntu22
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build firmware
run: pyinstaller release_linux.spec
- name: Generate file list for bin directory
id: file_list
run: |
file_list=$(ls -1 dist/*) # Only list .bin files in the bin directory
echo "FILES=$file_list" >> $GITHUB_ENV
echo "REF_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV
# Create a release and upload release assets
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
name: ${{ env.REF_NAME }}
body: Linux版本及Docker版本配置助手。
draft: false
prerelease: false
files: |
${{ env.FILES }}