Skip to content

Commit 8a272b3

Browse files
committed
Update Mac Build Deploy Action with v7 spec
1 parent 1d0953a commit 8a272b3

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/mac_build_deploy.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
branches: [master, development]
77
push:
88
branches: [master, development]
9-
9+
1010
permissions:
1111
id-token: write
1212
contents: read
1313

1414
env:
15-
AWS_REGION : us-east-1
15+
AWS_REGION: us-east-1
1616

1717
jobs:
1818
build:
@@ -28,10 +28,10 @@ jobs:
2828
with:
2929
python-version: '3.9'
3030
cache: 'pip'
31-
31+
3232
- name: Install Python Dependencies
3333
run: pip install -r release/requirements.txt
34-
34+
3535
- name: Install Processing
3636
run: |
3737
curl -O -L --insecure https://github.com/processing/processing4/releases/download/processing-1292-4.2/processing-4.2-macos-x64.zip
@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: Run Unit Tests
5959
run: python $GITHUB_WORKSPACE/GuiUnitTests/run-unittests.py
60-
60+
6161
- name: Decrypt Certificate
6262
run: |
6363
openssl version
@@ -72,16 +72,17 @@ jobs:
7272

7373
- name: Add OSX Signing Certificate to Keychain
7474
uses: apple-actions/import-codesign-certs@v2
75-
with:
75+
with:
7676
p12-filepath: ${{ github.workspace }}/release/mac/certificate.p12
7777
p12-password: ${{ secrets.CERTIFICATE_P12_PASSWORD }}
78-
78+
7979
- name: Build
8080
run: |
8181
python $GITHUB_WORKSPACE/release/build.py
8282
cp $GITHUB_WORKSPACE/OpenBCI_GUI/sketch.icns $GITHUB_WORKSPACE/application.macosx/OpenBCI_GUI.app/Contents/Resources/sketch.icns
8383
8484
- name: Sign Build
85+
if: ${{ false }}
8586
run: |
8687
codesign -f -v -s "Developer ID Application: OpenBCI, Inc. (3P82WRGLM8)" $GITHUB_WORKSPACE/application.macosx/OpenBCI_GUI.app
8788
@@ -92,6 +93,7 @@ jobs:
9293
OpenBCI_GUI $GITHUB_WORKSPACE/application.macosx.dmg
9394
9495
- name: Sign DMG
96+
if: ${{ false }}
9597
run: |
9698
codesign -f -v -s "Developer ID Application: OpenBCI, Inc. (3P82WRGLM8)" $GITHUB_WORKSPACE/application.macosx.dmg
9799
@@ -107,13 +109,13 @@ jobs:
107109
- name: Get Branch Names
108110
id: branch-name
109111
uses: tj-actions/branch-names@v7
110-
112+
111113
- name: Store Build on AWS
112114
run: |
113115
cd $GITHUB_WORKSPACE
114116
ls
115117
CURRENT_BRANCH=${{ steps.branch-name.outputs.head_ref_branch }}
116118
echo $CURRENT_BRANCH
117-
aws s3 rm s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
118-
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/${CURRENT_BRANCH} --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
119-
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
119+
aws s3 rm s3://openbci-public-gui-v7/latest --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
120+
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v7/${CURRENT_BRANCH} --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"
121+
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v7/latest --recursive --exclude "*" --include "openbcigui_*_macosx.dmg"

0 commit comments

Comments
 (0)