Skip to content

Commit

Permalink
adjusted workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Mar 7, 2024
1 parent c461c0b commit 68602a4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/editor_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 68602a4

Please sign in to comment.