Deploy #75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: "16.2" | |
| - name: Manually download iOS 18.2 | |
| if: env.simulator_cached == 'false' | |
| run: | | |
| xcodebuild -downloadPlatform iOS -buildVersion 18.2 -exportPath ~/SimulatorRuntimes/ | |
| xcodebuild -importPlatform "/Users/runner/SimulatorRuntimes/iphonesimulator_18.2_22C150.dmg" | |
| - run: swift run | |
| working-directory: ./deploy_new_version | |
| env: | |
| APPLE_APP_STORE_CONNECT_KEY: ${{ secrets.APPLE_APP_STORE_CONNECT_KEY }} | |
| APPLE_APP_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_APP_STORE_CONNECT_KEY_ID }} | |
| APPLE_APP_STORE_CONNECT_KEY_ISSUER_ID: ${{ secrets.APPLE_APP_STORE_CONNECT_KEY_ISSUER_ID }} | |
| XCODE_PROVISIONING_PROFILE: ${{ secrets.XCODE_PROVISIONING_PROFILE }} | |
| XCODE_SIGNING_CERT: ${{ secrets.XCODE_SIGNING_CERT }} | |
| XCODE_SIGNING_CERT_PASSWORD: ${{ secrets.XCODE_SIGNING_CERT_PASSWORD }} |