diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c485fd103e..aaf05dc39b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,10 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ env.NODE_VERSION }} + - uses: maxim-lobanov/setup-xcode@v1 + if: startsWith(matrix.os, 'macos') + with: + xcode-version: latest-stable - run: yarn --frozen-lockfile --network-timeout 1000000 - uses: nick-invision/retry@v2 with: @@ -66,8 +70,10 @@ jobs: max_attempts: 3 env: # macOS notarization API key - API_KEY_ID: ${{ secrets.apple_api_key_id }} - API_KEY_ISSUER_ID: ${{ secrets.apple_api_key_issuer_id }} + # https://www.codiga.io/blog/notarize-sign-electron-app/ + APPLE_ID: ${{ secrets.apple_id }} + APPLE_ID_PASSWORD: ${{ secrets.apple_id_password }} + APPLEIDPASS: ${{ secrets.apple_id_password }} APPLETEAMID: ${{ secrets.apple_team_id }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} diff --git a/packages/altair-api/src/stripe/stripe.service.ts b/packages/altair-api/src/stripe/stripe.service.ts index 0c8f5cf183..cab62a5010 100644 --- a/packages/altair-api/src/stripe/stripe.service.ts +++ b/packages/altair-api/src/stripe/stripe.service.ts @@ -10,7 +10,7 @@ export class StripeService { constructor() { this.stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', }); } diff --git a/packages/altair-electron/scripts/notarize.js b/packages/altair-electron/scripts/notarize.js index 122084360c..26baee7b44 100644 --- a/packages/altair-electron/scripts/notarize.js +++ b/packages/altair-electron/scripts/notarize.js @@ -14,10 +14,8 @@ exports.default = async function notarizing(context) { tool: 'notarytool', appBundleId: 'com.xkoji.altair', appPath: `${appOutDir}/${appName}.app`, - // appleId: process.env.APPLEID, - // appleIdPassword: process.env.APPLEIDPASS, - appleApiKeyId: process.env.API_KEY_ID, - appleApiIssuer: process.env.API_KEY_ISSUER_ID, + appleId: process.env.APPLE_ID, + appleIdPassword: process.env.APPLE_ID_PASSWORD, teamId: process.env.APPLETEAMID, }).then(res => console.log('Notarization completed!') || res); };