Skip to content

Commit

Permalink
Update macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
retiutut committed Jul 26, 2023
1 parent 73d0ab8 commit 3b95831
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/macos-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,23 @@ jobs:
python $GITHUB_WORKSPACE/release_script/make-release.py --no-prompts
GUI_COMMIT_TIME=`cat temp/timestamp.txt`
GUI_VERSION_STRING=`cat temp/versionstring.txt`
- name: Configure AWS credentials from Production account
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ env.AWS_REGION }}

- name: Store DMG on AWS
env:
AWS_DEFAULT_REGION: ${{ env.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_2023 }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_2023 }}
run: |
cd $GITHUB_WORKSPACE
ls
export CURRENT_BRANCH=`git branch --show-current`
export GUI_COMMIT_TIME=`cat temp/timestamp.txt`
export GUI_VERSION_STRING=`cat temp/versionstring.txt`
cd $GITHUB_WORKSPACE
ls
echo $GUI_COMMIT_TIME
echo $GUI_VERSION_STRING
echo $CURRENT_BRANCH
aws s3 rm s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/${GUI_VERSION_STRING} --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
Expand Down

0 comments on commit 3b95831

Please sign in to comment.