From 68602a4be90374e5d0f440a96a7bbbca28e83343 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 6 Mar 2024 22:46:11 -0800 Subject: [PATCH] adjusted workflow --- .github/workflows/editor_build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/editor_build.yml b/.github/workflows/editor_build.yml index 22a9f44..a8339a6 100644 --- a/.github/workflows/editor_build.yml +++ b/.github/workflows/editor_build.yml @@ -94,21 +94,21 @@ jobs: path: x64/Release - name: Upload to server run: | - VERSION=${{ needs.calculate-version.outputs.version }} - DEVICE_TYPE="editor" - FILENAME="VortexEditor-${DEVICE_TYPE}-${VERSION}.exe" + $VERSION="${{ needs.calculate-version.outputs.version }}" + $DEVICE_TYPE="editor" + $FILENAME="VortexEditor-${DEVICE_TYPE}-${VERSION}.exe" # Rename the file to include the version (Windows syntax) Rename-Item "x64/Release/VortexEditor.exe" $FILENAME - + # Assuming you have an endpoint set up for firmware upload - curl -X POST \ - -F "file=@x64/Release/$FILENAME" \ - -F "device=$DEVICE_TYPE" \ - -F "version=$VERSION" \ - -F "category=editor" \ - -F "clientApiKey=${{ secrets.VORTEX_COMMUNITY_API_KEY }}" \ + curl -X POST ` + -F "file=@x64/Release/$FILENAME" ` + -F "device=$DEVICE_TYPE" ` + -F "version=$VERSION" ` + -F "category=editor" ` + -F "clientApiKey=${{ secrets.VORTEX_COMMUNITY_API_KEY }}" ` https://vortex.community/firmware/upload shell: pwsh env: VORTEX_COMMUNITY_API_KEY: ${{ secrets.VORTEX_COMMUNITY_API_KEY }} - +