Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions .github/workflows/release-android-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ on:
description: 'Path to get the APK file'
required: true
type: string
env-file-path:
description: "Path + name of the env file"
required: false
type: string
upload-to-bucket:
description: "Upload to S3"
required: false
Expand All @@ -47,18 +43,10 @@ on:
default: false
type: boolean
secrets:
project-id:
description: 'Reown Cloud ID'
required: true
firebase-app-id:
required: true
gsa-key:
required: true
relay-url:
description: 'Relay URL'
required: false
sentry-dsn:
required: false
sentry-file:
required: true
secrets-file:
Expand Down Expand Up @@ -108,13 +96,18 @@ jobs:
# Create env file
- name: Create env file
run: |
ENV_FILE_CONTENT="${{ secrets.env-file }}"
ENV_FILE_PATH="${{ inputs.env-file-path }}"
if [ -n "$ENV_FILE_CONTENT" ] && [ -n "$ENV_FILE_PATH" ]; then
echo "$ENV_FILE_CONTENT" > "$ENV_FILE_PATH"
else
touch ${{ inputs.root-path }}/.env.${{ inputs.release-type }}
echo -e "ENV_PROJECT_ID=${{ secrets.project-id }}\nENV_RELAY_URL=${{ secrets.relay-url }}\nENV_SENTRY_DSN=${{ secrets.sentry-dsn }}\nENV_SENTRY_TAG=${{ inputs.release-type }}" >> ${{ inputs.root-path }}/.env.${{ inputs.release-type }}
if [ -z "${{ secrets.env-file }}" ]; then
echo "Error: env-file secret is empty or not set"
exit 1
fi
echo "${{ secrets.env-file }}" > ${{ inputs.root-path }}/.env

- name: Copy variant files
run: |
cd ${{ inputs.root-path }}
if [ -f "./scripts/copy-variant-files.sh" ]; then
chmod +x ./scripts/copy-variant-files.sh
./scripts/copy-variant-files.sh ${{ inputs.release-type }}
fi

- name: Add Sentry file
Expand Down
59 changes: 53 additions & 6 deletions .github/workflows/release-appkit.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Stub workflow to enable dispatch from feature branches
# Real implementation is on chore/ci-improvements branch
name: Release AppKit

permissions:
id-token: write
contents: read

on:
workflow_dispatch:
inputs:
Expand All @@ -26,7 +28,52 @@ on:
default: false

jobs:
stub:
runs-on: ubuntu-latest
steps:
- run: echo "This is a stub. Run from feature branch with --ref"
release-android:
if: ${{ inputs.platform == 'android' }}
uses: ./.github/workflows/release-android-base.yaml
with:
name: AppKit React Native
root-path: 'dapps/W3MWagmi'
release-type: ${{ inputs.release-type }}
project-type: 'dapp'
output-path: ${{ inputs.release-type == 'internal' && 'dapps/W3MWagmi/android/app/build/outputs/apk/internal/app-internal.apk' || 'dapps/W3MWagmi/android/app/build/outputs/apk/release/app-release.apk' }}
upload-to-bucket: ${{ inputs.e2e-build }}
secrets:
env-file: ${{ secrets.APPKIT_ENV_FILE }}
sentry-file: ${{ secrets.W3M_WAGMI_SENTRY_FILE }}
secrets-file: ${{ secrets.ANDROID_SECRETS_FILE }}
firebase-app-id: ${{ inputs.release-type == 'internal' && secrets.W3M_WAGMI_ANDROID_INTERNAL_FIREBASE_APP_ID || secrets.APPKIT_ANDROID_PROD_FIREBASE_APP_ID }}
gsa-key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
keystore-name: ${{ inputs.release-type == 'internal' && secrets.WC_INTERNAL_KEYSTORE_NAME || vars.WC_PROD_KEYSTORE_NAME }}
keystore: ${{ inputs.release-type == 'internal' && secrets.WC_INTERNAL_KEYSTORE || secrets.WC_PROD_KEYSTORE }}
aws-account-id: ${{ secrets.AWS_ACCOUNT_ID }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
firebase-url: ${{ inputs.release-type == 'internal' && vars.FIREBASE_APPKIT_INTERNAL_URL || vars.FIREBASE_APPKIT_PROD_URL }}

release-ios:
if: ${{ inputs.platform == 'ios' }}
uses: ./.github/workflows/release-ios-base.yaml
with:
name: AppKit React Native
root-path: 'dapps/W3MWagmi'
release-type: ${{ inputs.release-type }}
scheme-name: ${{ inputs.release-type == 'internal' && 'W3MWagmi Internal' || 'W3MWagmi' }}
bundle-id: ${{ inputs.release-type == 'internal' && 'com.walletconnect.web3modal.rnsample.internal' || 'com.walletconnect.web3modal.rnsample' }}
apple-id: ${{ inputs.release-type == 'internal' && '6479817037' || '6446700301' }}
project-type: 'dapp'
build-for-simulator: ${{ inputs.e2e-build }}
upload-to-bucket: ${{ inputs.e2e-build }}
secrets:
env-file: ${{ secrets.APPKIT_ENV_FILE }}
sentry-file: ${{ secrets.W3M_WAGMI_SENTRY_FILE }}
apple-username: ${{ secrets.APPLE_USERNAME }}
apple-key-id: ${{ secrets.APPLE_KEY_ID }}
apple-key-content: ${{ secrets.APPLE_KEY_CONTENT }}
apple-issuer-id: ${{ secrets.APPLE_ISSUER_ID }}
match-username: ${{ secrets.MATCH_USERNAME }}
match-keychain-password: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
match-git-url: ${{ secrets.MATCH_GIT_URL }}
match-ssh-key: ${{ secrets.MATCH_SSH_KEY }}
aws-account-id: ${{ secrets.AWS_ACCOUNT_ID }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
testflight-url: ${{ inputs.release-type == 'internal' && vars.TESTFLIGHT_APPKIT_INTERNAL_URL || vars.TESTFLIGHT_APPKIT_PROD_URL }}
31 changes: 0 additions & 31 deletions .github/workflows/release-dapp-android-internal.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/release-dapp-android-production.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/release-dapp-ios-internal.yaml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/release-dapp-ios-production.yaml

This file was deleted.

31 changes: 12 additions & 19 deletions .github/workflows/release-ios-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ on:
required: false
default: false
type: boolean
env-file-path:
description: "Path + name of the env file"
required: false
type: string
upload-to-bucket:
description: "Upload to S3"
required: false
Expand All @@ -63,14 +59,6 @@ on:
default: false
type: boolean
secrets:
project-id:
description: "WalletConnect Cloud ID"
required: true
relay-url:
description: "WalletConnect Relay URL"
required: false
sentry-dsn:
required: false
sentry-file:
required: true
apple-username:
Expand Down Expand Up @@ -168,13 +156,18 @@ jobs:
# Create env file
- name: Create env file
run: |
ENV_FILE_CONTENT="${{ secrets.env-file }}"
ENV_FILE_PATH="${{ inputs.env-file-path }}"
if [ -n "$ENV_FILE_CONTENT" ] && [ -n "$ENV_FILE_PATH" ]; then
echo "$ENV_FILE_CONTENT" > "$ENV_FILE_PATH"
else
touch ${{ inputs.root-path }}/.env.${{ inputs.release-type }}
echo -e "ENV_PROJECT_ID=${{ secrets.project-id }}\nENV_RELAY_URL=${{ secrets.relay-url }}\nENV_SENTRY_DSN=${{ secrets.sentry-dsn }}\nENV_SENTRY_TAG=${{ inputs.release-type }}" >> ${{ inputs.root-path }}/.env.${{ inputs.release-type }}
if [ -z "${{ secrets.env-file }}" ]; then
echo "Error: env-file secret is empty or not set"
exit 1
fi
echo "${{ secrets.env-file }}" > ${{ inputs.root-path }}/.env

- name: Copy variant files
run: |
cd ${{ inputs.root-path }}
if [ -f "./scripts/copy-variant-files.sh" ]; then
chmod +x ./scripts/copy-variant-files.sh
./scripts/copy-variant-files.sh ${{ inputs.release-type }}
fi

# Create sentry file
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/release-pos-android.yaml

This file was deleted.

Loading