Skip to content

Commit 8fe58b3

Browse files
committed
Fix S3 upload for WIndows Build Deploy Action
1 parent aa02b6c commit 8fe58b3

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/windows_build_deploy.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,17 @@ jobs:
137137

138138
- name: Store Build on AWS
139139
run: |
140-
cd ${{ github.workspace }}
140+
cd ${{ env.msi-path }}
141141
ls
142142
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
143143
set S3_BRANCH_FOLDER=s3://openbci-public-gui-v7/${{ steps.branch-name.outputs.head_ref_branch }}
144-
echo %S3_BRANCH_FOLDER%
145-
aws s3 rm s3://openbci-public-gui-v7/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
146-
aws s3 cp ${{ github.workspace }}/. %S3_BRANCH_FOLDER% --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
147-
aws s3 cp ${{ github.workspace }}/. s3://openbci-public-gui-v7/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
144+
echo Branch Folder: %S3_BRANCH_FOLDER%
145+
set S3_LATEST_FOLDER=s3://openbci-public-gui-v7/latest
146+
echo Latest Folder: %S3_LATEST_FOLDER%
147+
aws s3 rm %S3_LATEST_FOLDER% --recursive
148+
aws s3 rm %S3_BRANCH_FOLDER% --recursive
149+
aws s3 cp . %S3_BRANCH_FOLDER% --recursive --exclude "*" --include "*.msi"
150+
aws s3 cp . %S3_LATEST_FOLDER% --recursive --exclude "*" --include "*.msi"
151+
env:
152+
msi-path: ${{ github.workspace }}\release\wix\bin\Release\en-US\
148153
shell: cmd

0 commit comments

Comments
 (0)