Skip to content

Commit

Permalink
Add MacOS Signing Cert to Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
retiutut committed Jul 25, 2023
1 parent 6e2f4a0 commit 6309a5b
Show file tree
Hide file tree
Showing 6 changed files with 498 additions and 109 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/macos-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
branches: [master, development]
push:
branches: [master, development]

permissions:
id-token: write
contents: read

env:
AWS_REGION : us-east-1

jobs:
check:
Expand Down Expand Up @@ -57,6 +64,20 @@ jobs:
run: |
ls
python $GITHUB_WORKSPACE/OpenBCI_GUI_UnitTests/run-unittests.py
- name: Decrypt Certificate
run: |
openssl version
openssl enc -aes-256-cbc -a -d -pbkdf2 -in $GITHUB_WORKSPACE/release_script/mac_only/Certificates_2023.p12.enc -out $GITHUB_WORKSPACE/release_script/mac_only/Certificates.p12 -k "$OPENSSL_CERT_K"
openssl base64 -in $GITHUB_WORKSPACE/release_script/mac_only/Certificates.p12 -out $GITHUB_WORKSPACE/release_script/mac_only/Certificates.txt
env:
OPENSSL_CERT_K: ${{ secrets.OPENSSL_CERT_K }}

- name: Add OSX Signing Certificate
uses: apple-actions/import-codesign-certs@v2
with:
p12-filepath: ${{ github.workspace }}/release_script/mac_only/Certificates.p12
p12-password: ${{ secrets.CERTIFICATE_P12_PASSWORD }}

- name: Build GUI
run: |
Expand All @@ -66,3 +87,19 @@ 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: 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: |
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
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"
10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ build_script:
- set /p GUI_VERSION_STRING= < temp\versionstring.txt

deploy_script:
- aws s3 rm s3://openbci-gui/%APPVEYOR_REPO_BRANCH%/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\. s3://openbci-gui/%APPVEYOR_REPO_BRANCH%/%GUI_VERSION_STRING%_%GUI_COMMIT_TIME% --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\. s3://openbci-gui/%APPVEYOR_REPO_BRANCH%/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
#- aws s3 rm s3://openbci-gui/%APPVEYOR_REPO_BRANCH%/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
#- aws s3 cp %APPVEYOR_BUILD_FOLDER%\. s3://openbci-gui/%APPVEYOR_REPO_BRANCH%/%GUI_VERSION_STRING%_%GUI_COMMIT_TIME% --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
#- aws s3 cp %APPVEYOR_BUILD_FOLDER%\. s3://openbci-gui/%APPVEYOR_REPO_BRANCH%/latest --recursive --exclude "*" --include "openbcigui_*_windows64.zip"
# copy index.html and list.js back to s3 to refresh it and avoid it being deleted by the eviction policy
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\release_script\index.html s3://openbci-gui/index.html
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\release_script\list.js s3://openbci-gui/list.js
#- aws s3 cp %APPVEYOR_BUILD_FOLDER%\release_script\index.html s3://openbci-gui/index.html
#- aws s3 cp %APPVEYOR_BUILD_FOLDER%\release_script\list.js s3://openbci-gui/list.js

notifications:
- provider: Email
Expand Down
Binary file removed release_script/mac_only/Certificates.p12.enc
Binary file not shown.
66 changes: 66 additions & 0 deletions release_script/mac_only/Certificates_2023.p12.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
U2FsdGVkX19mrA/XuOw56q19fU60NF3QCFq5xEJ57Fto6MxMFG4o8+95cl1HP3rM
HCepjVTUCbh9T+S2m71hHPgDi4d6rIIKKxSa/GdQg8tNj0BtOi/k3757xZhfnfIK
tiDoBw9y3mT678jnXcj0nMKc9xIeUZXkyrfLPsTTddkhGFuPpFshMCpx1+57BuoL
EjueNyVPfN7vacU2SUjWMmNBK+fgR/cbL4H6Pw4P6pDIhS+95kl++MOw1y/Y20xI
6dAVCXHp7dXIos6XAqN/Pp8mSjOZtrHcNWDfzTkdPUgnCOwITeHXL3aOqBd3YOar
nLcNslU+wVYU3OcJQeYx1zv+H1/zyoEzqE3NSN7ERY1DdNry2YfWkEZB5RlS7k34
dgUYjdTdZ027jgP6+qfBXI+1UuwL5PsVfi8+tjajwJNfIFEM3KCm7qNXMFPwnHJj
bFUUtfOXZouSJHl9WYbEqguLtUY6+Jh3MOshVZPBeDE5dv+ADvdWGhWto+2leHRX
Njw3oi5qimsY1aI2FdR2G/0eE0SU+Lq+WEfuvg3PQoX4ghlMRzjnkVzTHDiM0DUW
VBVjNlYpN0ZdG+9R+iMs3HO1TYQZHorPTeR6358knrXQmtQhVajIsCdYlurNmqwe
7Dna2lcQRcYcDhuMuPcrPh6JQeN597IgTRDs/zLZXjlqTnJqnY6WJFDxFQSXmtMi
tGxE1DHP/+Tc4h4ZDO1JUNv7ptTdi73Ey3b3aJXeNYHEYMozUsDdj+NvdffONZ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