diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 8bffa83..ff9d91f 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -1,9 +1,6 @@ name: Build Container on: - push: - branches: - - develop schedule: - cron: '0 0 * * *' # Runs daily at midnight UTC diff --git a/.github/workflows/build_firmware.yml b/.github/workflows/build_firmware.yml index e8efbaa..1276413 100644 --- a/.github/workflows/build_firmware.yml +++ b/.github/workflows/build_firmware.yml @@ -104,8 +104,17 @@ jobs: echo "path=" >> $GITHUB_OUTPUT fi + - name: Set artifact name + id: set_artifact_name + run: | + if [ "${{ matrix.release }}" = "1" ]; then + echo "artifact_name=firmware-${{ matrix.soc }}-release" >> $GITHUB_ENV + else + echo "artifact_name=firmware-${{ matrix.soc }}-debug" >> $GITHUB_ENV + fi + - name: Upload firmware artifact uses: actions/upload-artifact@v3 with: - name: firmware-${{ matrix.soc }}-release-${{ matrix.release }} + name: ${{ steps.set_artifact_name.outputs.artifact_name }} path: ${{ steps.set_firmware_path.outputs.path }} \ No newline at end of file