From 25f2176d02b30c14d42075fab3e7bff20d716c98 Mon Sep 17 00:00:00 2001 From: "Jason C. Leach" Date: Wed, 9 Nov 2022 17:11:29 -0800 Subject: [PATCH] fix: export path to cli tools Signed-off-by: Jason C. Leach --- .github/workflows/blarb.yaml | 56 ++++++++++++++++++++++++++++++++++++ .github/workflows/main.yaml | 3 +- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/blarb.yaml diff --git a/.github/workflows/blarb.yaml b/.github/workflows/blarb.yaml new file mode 100644 index 00000000..16aa070d --- /dev/null +++ b/.github/workflows/blarb.yaml @@ -0,0 +1,56 @@ +name: Test + +env: + cacheId: "11" # increment to expire the cache + appBuildNumber: ${{ github.run_number }} + appBuildVersion: "1.0.4" + +on: + workflow_dispatch: + push: + branches: [main] + paths: + - app/** + - bifold + pull_request: + branches: [main] + paths: + - app/** + +jobs: + build-ios: + # if: ${{ false }} # disable for now + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + + - name: Pull & update submodules recursively + run: | + git submodule update --init --recursive + + - name: What XCode are we using? + run: | + xcode-select -p + + - name: Configure node + uses: actions/setup-node@v1 + with: + node-version: "16.15.0" + registry-url: "https://registry.npmjs.org" + + - name: Configure ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # https://blog.codemagic.io/app-store-connect-api-codemagic-cli-tools/ + - name: Install Codemagic CLI Tools + if: github.ref_name == 'main' + run: | + pip3 install codemagic-cli-tools + + # https://blog.codemagic.io/app-store-connect-api-codemagic-cli-tools/ + - name: xxx + if: github.ref_name == 'main' + run: | + find / -iname '*codemagic*' diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index add0cb54..ecd1a9ac 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -217,7 +217,8 @@ jobs: APP_STORE_CONNECT_KEY_IDENTIFIER: ${{ secrets.APP_STORE_CONNECT_KEY_IDENTIFIER }} APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.APP_STORE_CONNECT_PRIVATE_KEY_95 }} run: | - /usr/local/bin/app-store-connect publish \ + export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin + app-store-connect publish \ --apple-id ${{ secrets.APPLE_ID }} \ --password ${{ secrets.APPLE_ID_PASSWD }} \ --enable-package-validation \