From 7a24cd086efca64966abd95afb18ac5e041a30c6 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 2 Mar 2024 23:45:44 -0800 Subject: [PATCH] more adjustments --- .github/workflows/orbit_build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/orbit_build.yml b/.github/workflows/orbit_build.yml index 99e6195ec0..83d1459010 100644 --- a/.github/workflows/orbit_build.yml +++ b/.github/workflows/orbit_build.yml @@ -22,7 +22,7 @@ jobs: VERSION_NUMBER=$(echo $LATEST_TAG | sed "s/${BRANCH_SUFFIX}//g") BUILD_NUMBER=$(git rev-list --count $LATEST_TAG..HEAD) FULL_VERSION="$VERSION_NUMBER.$BUILD_NUMBER" - echo "::set-output name=full_version::$FULL_VERSION" + echo "FULL_VERSION=$FULL_VERSION" >> $GITHUB_ENV test: runs-on: ubuntu-latest @@ -129,12 +129,14 @@ jobs: path: build - name: Rename and Deploy Firmware run: | - VERSIONED_FILENAME="VortexEngine_${{ needs.setup.outputs.version }}.uf2" + DEVICE_TYPE="orbit" + VERSIONED_FILENAME="VortexEngine-${DEVICE_TYPE}-${{ needs.setup.outputs.version }}.uf2" mv build/VortexEngine.ino.uf2 build/$VERSIONED_FILENAME curl -X POST \ -F "file=@build/$VERSIONED_FILENAME" \ - -F "device=orbit" \ + -F "device=$DEVICE_TYPE" \ -F "version=${{ needs.setup.outputs.version }}" \ -F "category=firmware" \ -F "clientApiKey=${{ secrets.VORTEX_COMMUNITY_API_KEY }}" \ https://vortex.community/firmware/upload +