1616
1717jobs :
1818 build :
19- name : Test Build for Windows
19+ name : Build for Windows
2020 runs-on : windows-2019
2121
2222 steps :
8484 ls
8585 set PATH=%PATH%;%GITHUB_WORKSPACE%\temp\processing-4.2
8686 set PATH=%PATH%;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64
87+ type nul > temp/versionstring.txt
88+ type nul > temp/timestamp.txt
8789 python %GITHUB_WORKSPACE%\release_script\make-release.py --no-prompts
8890 shell : cmd
8991
@@ -114,16 +116,18 @@ jobs:
114116 role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
115117 aws-region : ${{ env.AWS_REGION }}
116118
119+ - name : Get branch names
120+ id : branch-name
121+ uses : tj-actions/branch-names@v7
122+
117123 - name : Store Build on AWS
118124 run : |
119- cd $GITHUB_WORKSPACE
125+ cd ${{ github.workspace }}
120126 ls
121- export CURRENT_BRANCH=`git branch --show-current`
122- export GUI_COMMIT_TIME=`cat temp/timestamp.txt`
123- export GUI_VERSION_STRING=`cat temp/versionstring.txt`
124- echo $GUI_COMMIT_TIME
125- echo $GUI_VERSION_STRING
126- echo $CURRENT_BRANCH
127+ echo "${{ steps.branch-name.outputs.head_ref_branch }}"
128+ set S3_BRANCH_FOLDER=s3://openbci-public-gui-v6/${{ steps.branch-name.outputs.head_ref_branch }}
129+ echo %S3_BRANCH_FOLDER%
127130 aws s3 rm s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
128- aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/${GUI_VERSION_STRING} --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
129- aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
131+ aws s3 cp ${{ github.workspace }}/. %S3_BRANCH_FOLDER% --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
132+ aws s3 cp ${{ github.workspace }}/. s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
133+ shell : cmd
0 commit comments