From bffff29523929f5c92279752c4c9e8fd35d9c607 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 2 Dec 2024 17:10:42 +0000 Subject: [PATCH] CI: Fix file copy and uploads. --- .github/workflows/micropython.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/micropython.yml b/.github/workflows/micropython.yml index a25d238..19154fe 100644 --- a/.github/workflows/micropython.yml +++ b/.github/workflows/micropython.yml @@ -64,13 +64,13 @@ jobs: run: | source $CI_PROJECT_ROOT/ci/micropython.sh && ci_debug ci_cmake_build ${{ matrix.name }} - mv build-${{ matrix.name }}.uf2 ${{ env.RELEASE_FILE }}.uf2 + mv "$CI_BUILD_ROOT/build-${{ matrix.name }}.uf2" "$CI_BUILD_ROOT/$RELEASE_FILE.uf2" - name: "Artifacts: Upload .uf2" uses: actions/upload-artifact@v4 with: name: ${{ env.RELEASE_FILE }}.uf2 - path: build-${{ matrix.name }}/${{ env.RELEASE_FILE }}.uf2 + path: ${{ env.CI_BUILD_ROOT }}/${{ env.RELEASE_FILE }}.uf2 - name: "Release: Upload .uf2" if: github.event_name == 'release' @@ -78,7 +78,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - asset_path: build-${{ matrix.name }}/${{ env.RELEASE_FILE }}.uf2 + asset_path: ${{ env.CI_BUILD_ROOT }}/${{ env.RELEASE_FILE }}.uf2 upload_url: ${{ github.event.release.upload_url }} asset_name: ${{ env.RELEASE_FILE }}.uf2 asset_content_type: application/octet-stream