Skip to content

Commit

Permalink
more adjustments (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan authored Mar 3, 2024
1 parent d73395a commit 04973d7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/orbit_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 04973d7

Please sign in to comment.