Skip to content

Commit

Permalink
chore: update pipeline to use ios secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
adityastic committed Jan 18, 2025
1 parent cab14ed commit 2ebdf58
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/push-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
ENCRYPTED_F10B5E0E5262_IV: ${{ secrets.ENCRYPTED_F10B5E0E5262_IV }}
ENCRYPTED_F10B5E0E5262_KEY: ${{ secrets.ENCRYPTED_F10B5E0E5262_KEY }}
run: |
bash scripts/prep-key.sh
bash scripts/prep-android-key.sh
- name: Android Workflow
uses: ./.github/actions/android
Expand Down Expand Up @@ -156,6 +156,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Prepare Build Keys
if: ${{ github.repository == 'fossasia/pslab-android' }}
env:
ENCRYPTED_IOS_IV: ${{ secrets.ENCRYPTED_IOS_IV }}
ENCRYPTED_IOS_KEY: ${{ secrets.ENCRYPTED_IOS_KEY }}
run: |
bash scripts/prep-ios-key.sh
- name: iOS Workflow
uses: ./.github/actions/ios
with:
Expand Down
File renamed without changes.
Binary file added scripts/ios-secrets.tar.enc
Binary file not shown.
5 changes: 5 additions & 0 deletions scripts/prep-android-key.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e

openssl aes-256-cbc -K $ENCRYPTED_F10B5E0E5262_KEY -iv $ENCRYPTED_F10B5E0E5262_IV -in ./scripts/android-secrets.tar.enc -out ./scripts/android-secrets.tar -d
tar xvf ./scripts/android-secrets.tar -C scripts/
5 changes: 5 additions & 0 deletions scripts/prep-ios-key.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e

openssl aes-256-cbc -K $ENCRYPTED_IOS_KEY -iv $ENCRYPTED_IOS_IV -in ./scripts/ios-secrets.tar.enc -out ./scripts/ios-secrets.tar -d
tar xvf ./scripts/ios-secrets.tar -C ios/
5 changes: 0 additions & 5 deletions scripts/prep-key.sh

This file was deleted.

0 comments on commit 2ebdf58

Please sign in to comment.