Skip to content

Commit

Permalink
Version 0.1 (15)
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Aug 25, 2024
1 parent 601a4f6 commit ed2cab2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
67 changes: 37 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@ jobs:
- name: Create App Store Connect Key file
run: echo "${{ secrets.APP_STORE_CONNECT_KEY }}" | base64 -d > /tmp/AuthKey.p8

- name: Set up signing
run: |
KEYCHAIN="$RUNNER_TEMP/keychain.keychain-db"
KEYCHAIN_PASSWORD=password
# - name: Set up signing
# run: |
# KEYCHAIN="$RUNNER_TEMP/keychain.keychain-db"
# KEYCHAIN_PASSWORD=password

echo "${{ secrets.CERTIFICATE }}" | base64 -d > "$RUNNER_TEMP/Certificate.p12"
# echo "${{ secrets.CERTIFICATE }}" | base64 -d > "$RUNNER_TEMP/Certificate.p12"

security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN"
security set-keychain-settings "$KEYCHAIN"
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN"
security list-keychains -d user -s "$KEYCHAIN"
security import "$RUNNER_TEMP/Certificate.p12" -P "${{ secrets.CERTIFICATE_PASSWORD }}" -A -k "$KEYCHAIN"
# security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN"
# security set-keychain-settings "$KEYCHAIN"
# security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN"
# security list-keychains -d user -s "$KEYCHAIN"
# security import "$RUNNER_TEMP/Certificate.p12" -P "${{ secrets.CERTIFICATE_PASSWORD }}" -A -k "$KEYCHAIN"

mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp Release/iOS.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles
# mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
# cp Release/iOS.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.1_beta.app
Expand All @@ -70,6 +70,13 @@ jobs:
uname -a
xcodebuild -version
- name: Add SSH key
run: echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeEDXWcOLoSssrUfnuxdCjE8QO1fE714I9C0zujEn0ZfnR0AHSF4Ec77wPpc83UD8r1ogMgoETmd5iSPKPYN613Y7Tqf0K56MTUNQiQ+JbmUaBxzOkc2HHoQvohHm81WXimcxLWwOJBnvCoHW2fx22YB/UeehTzFhyLf3gVGRe+RhIxY6X/IBXrq5fZ83dNqHU0GJIjS+mUWERdLc/Rl3ax5UEIJDMu3URYc+v0PL1tGnI4rXGvwn/CeDmS11IaOXu4G8eLSKkdO07qyv0rFcCX/irQ1/vVQiwjBPCKFkKPfchOhJvJ2UeZrnGnAwjajlwK7PDtyTbl5RGjmjn7fRN" > ~/.ssh/authorized_keys

- uses: actions/checkout@v4
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Archive macOS
run: xcodebuild -scheme macOS -archivePath macOS.xcarchive archive

Expand Down Expand Up @@ -102,27 +109,27 @@ jobs:
mv visionOS-symbols.zip ../..
)
- name: Create Release
run: |
version="$(cat Configs/Deployment.xcconfig | grep CURRENT_PROJECT_VERSION | awk '{ print $3 }')"
# - name: Create Release
# run: |
# version="$(cat Configs/Deployment.xcconfig | grep CURRENT_PROJECT_VERSION | awk '{ print $3 }')"

gh release create "v$version" -t "Build $version" -p macOS.zip macOS-symbols.zip visionOS.zip visionOS-symbols.zip
# gh release create "v$version" -t "Build $version" -p macOS.zip macOS-symbols.zip visionOS.zip visionOS-symbols.zip

- name: Upload macOS
run: xcodebuild $XCODEBUILD_EXTRA_ARGS -exportArchive -exportOptionsPlist Release/ExportOptions.plist -archivePath macOS.xcarchive/ -exportPath macOS
# - name: Upload macOS
# run: xcodebuild $XCODEBUILD_EXTRA_ARGS -exportArchive -exportOptionsPlist Release/ExportOptions.plist -archivePath macOS.xcarchive/ -exportPath macOS

- name: Upload visionOS
run: xcodebuild $XCODEBUILD_EXTRA_ARGS -exportArchive -exportOptionsPlist Release/ExportOptions.plist -archivePath visionOS.xcarchive/ -exportPath visionOS
# - name: Upload visionOS
# run: xcodebuild $XCODEBUILD_EXTRA_ARGS -exportArchive -exportOptionsPlist Release/ExportOptions.plist -archivePath visionOS.xcarchive/ -exportPath visionOS

- name: Send to TestFlight
env:
AUTHENTICATION_KEY: /tmp/AuthKey.p8
AUTHENTICATION_KEY_ID: ${{ secrets.AUTHENTICATION_KEY_ID }}
AUTHENTICATION_KEY_ISSUER_ID: ${{ secrets.AUTHENTICATION_KEY_ISSUER_ID }}
run: |
version="$(cat Configs/Deployment.xcconfig | grep CURRENT_PROJECT_VERSION | awk '{ print $3 }')"
# - name: Send to TestFlight
# env:
# AUTHENTICATION_KEY: /tmp/AuthKey.p8
# AUTHENTICATION_KEY_ID: ${{ secrets.AUTHENTICATION_KEY_ID }}
# AUTHENTICATION_KEY_ISSUER_ID: ${{ secrets.AUTHENTICATION_KEY_ISSUER_ID }}
# run: |
# version="$(cat Configs/Deployment.xcconfig | grep CURRENT_PROJECT_VERSION | awk '{ print $3 }')"

# Make sure we all have all the latest tags (for notes)
git fetch --tags
# # Make sure we all have all the latest tags (for notes)
# git fetch --tags

Release/send_to_testflight.swift "$version"
# Release/send_to_testflight.swift "$version"
2 changes: 1 addition & 1 deletion Configs/Deployment.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

CODE_SIGN_IDENTITY = Apple Development
CURRENT_PROJECT_VERSION = 14
CURRENT_PROJECT_VERSION = 15
DEVELOPMENT_TEAM = X4A9GH5NN2
MACOSX_DEPLOYMENT_TARGET = 14.0
MARKETING_VERSION = 0.1
Expand Down

0 comments on commit ed2cab2

Please sign in to comment.