Skip to content

fix: download frameware path error #12

fix: download frameware path error

fix: download frameware path error #12

Workflow file for this run

name: Build-Release
on:
push:
tags:
- "*"
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Docker login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Build the Docker image
run: docker build -f Dockerfile.build -t ${{ secrets.DOCKERHUB_USERNAME }}/fishbot_tool:build_ubuntu22 .
- name: Docker image push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/fishbot_tool:build_ubuntu22
build-linux-x64:
runs-on: ubuntu-latest
needs: build-docker # Wait for the completion of the 'build-docker' job
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
- 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 }}