Build-Release #26
Workflow file for this run
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-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 }} |