Skip to content

Commit

Permalink
test certs in build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Matting committed Apr 15, 2024
1 parent e6c70a9 commit 5f970a4
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- shell: bash

- name: Import certs
shell: bash
env:
DEVELOPER_ID_APPLICATION_PEM: ${{ secrets.DEVELOPER_ID_APPLICATION_PEM }}
DEV_KEY_P12_B64: ${{ secrets.DEV_KEY_P12_B64 }}
DEV_KEY_P12_W: ${{ secrets.DEV_KEY_P12_W }}
run: |
python3 --version
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-stage2.txt
./scripts/build.sh
set -eo pipefail
echo -n "$DEVELOPER_ID_APPLICATION_PEM" > /tmp/DEVELOPER_ID_APPLICATION_PEM
echo -n "$DEV_KEY_P12_B64" | base64 -d > /tmp/DEV_KEY_P12
pw=(echo -n "$DEV_KEY_P12_W")
security import /tmp/DEV_KEY_P12 -k $HOME/Library/Keychains/login.keychain -P "$pw" -A "Stefan Dev Key"
security import "$DEVELOPER_ID_APPLICATION_PEM" -k $HOME/Library/Keychains/login.keychain
rm -f /tmp/DEVELOPER_ID_APPLICATION_PEM
rm -f /tmp/DEV_KEY_P12
echo "succesfully imported"
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - shell: bash
# run: |
# python3 --version
# python3 -m venv venv
# source venv/bin/activate
# pip install -r requirements.txt
# pip install -r requirements-stage2.txt
# ./scripts/build.sh

0 comments on commit 5f970a4

Please sign in to comment.