Skip to content

Commit

Permalink
chore: added sentry auth token to env
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Dec 9, 2024
1 parent 5cdfe44 commit 6146552
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release-android-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ on:
required: true
sentry-file:
required: true
sentry-auth-token:
required: true
secrets-file:
required: true
keystore-name:
Expand Down Expand Up @@ -63,7 +65,7 @@ jobs:
architecture: x86_64

- name: Create env file
run: 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 }}
run: 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 }}\nSENTRY_AUTH_TOKEN=${{ secrets.sentry-auth-token }}\nENV_SENTRY_TAG=${{ inputs.release-type }}" >> ${{ inputs.root-path }}/.env.${{ inputs.release-type }}

- name: Add Sentry file
run: touch ${{ inputs.root-path }}/android/sentry.properties && echo "${{ secrets.sentry-file }}" >> ${{ inputs.root-path }}/android/sentry.properties
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-dapp-android-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
relay-url: ${{ secrets.ENV_RELAY_URL }}
sentry-dsn: ${{ secrets.W3M_WAGMI_SENTRY_DSN }}
sentry-file: ${{ secrets.W3M_WAGMI_SENTRY_FILE }}
sentry-auth-token: ${{ secrets.W3M_WAGMI_SENTRY_AUTH_TOKEN }}
secrets-file: ${{ secrets.ANDROID_SECRETS_FILE }}
firebase-app-id: ${{ secrets.W3M_WAGMI_ANDROID_INTERNAL_FIREBASE_APP_ID }}
gsa-key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-dapp-android-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
relay-url: ${{ secrets.ENV_RELAY_URL }}
sentry-dsn: ${{ secrets.W3M_WAGMI_SENTRY_DSN }}
sentry-file: ${{ secrets.W3M_WAGMI_SENTRY_FILE }}
sentry-auth-token: ${{ secrets.W3M_WAGMI_SENTRY_AUTH_TOKEN }}
secrets-file: ${{ secrets.ANDROID_SECRETS_FILE }}
firebase-app-id: ${{ secrets.APPKIT_ANDROID_PROD_FIREBASE_APP_ID }}
gsa-key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-dapp-ios-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
relay-url: ${{ secrets.ENV_RELAY_URL }}
sentry-dsn: ${{ secrets.W3M_WAGMI_SENTRY_DSN }}
sentry-file: ${{ secrets.W3M_WAGMI_SENTRY_FILE }}
sentry-auth-token: ${{ secrets.W3M_WAGMI_SENTRY_AUTH_TOKEN }}
apple-username: ${{ secrets.APPLE_USERNAME }}
apple-key-id: ${{ secrets.APPLE_KEY_ID }}
apple-key-content: ${{ secrets.APPLE_KEY_CONTENT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-dapp-ios-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
relay-url: ${{ secrets.ENV_RELAY_URL }}
sentry-dsn: ${{ secrets.W3M_WAGMI_SENTRY_DSN }}
sentry-file: ${{ secrets.W3M_WAGMI_SENTRY_FILE }}
sentry-auth-token: ${{ secrets.W3M_WAGMI_SENTRY_AUTH_TOKEN }}
apple-username: ${{ secrets.APPLE_USERNAME }}
apple-key-id: ${{ secrets.APPLE_KEY_ID }}
apple-key-content: ${{ secrets.APPLE_KEY_CONTENT }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release-ios-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ on:
required: true
sentry-file:
required: true
sentry-auth-token:
required: true
apple-username:
required: true
apple-key-id:
Expand Down Expand Up @@ -110,7 +112,7 @@ jobs:
run: gem install cocoapods

# Create env file
- run: 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 }}
- run: 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 }}\nSENTRY_AUTH_TOKEN=${{ secrets.sentry-auth-token }}\nENV_SENTRY_TAG=${{ inputs.release-type }}" >> ${{ inputs.root-path }}/.env.${{ inputs.release-type }}

# Create sentry file
- run: touch ${{ inputs.root-path }}/ios/sentry.properties && echo "${{ secrets.sentry-file }}" >> ${{ inputs.root-path }}/ios/sentry.properties
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-wallet-android-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
relay-url: ${{ secrets.ENV_RELAY_URL }}
sentry-dsn: ${{ secrets.W3W_SENTRY_DSN }}
sentry-file: ${{ secrets.W3W_SENTRY_FILE }}
sentry-auth-token: ${{ secrets.W3W_SENTRY_AUTH_TOKEN }}
secrets-file: ${{ secrets.ANDROID_SECRETS_FILE }}
firebase-app-id: ${{ secrets.W3W_ANDROID_INTERNAL_FIREBASE_APP_ID }}
gsa-key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-wallet-android-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
sentry-dsn: ${{ secrets.W3W_SENTRY_DSN }}
sentry-file: ${{ secrets.W3W_SENTRY_FILE }}
secrets-file: ${{ secrets.ANDROID_SECRETS_FILE }}
sentry-auth-token: ${{ secrets.W3W_SENTRY_AUTH_TOKEN }}
firebase-app-id: ${{ secrets.W3W_ANDROID_PROD_FIREBASE_APP_ID }}
gsa-key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
keystore-name: ${{ vars.WC_PROD_KEYSTORE_NAME }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-wallet-ios-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
relay-url: ${{ secrets.ENV_RELAY_URL }}
sentry-dsn: ${{ secrets.W3W_SENTRY_DSN }}
sentry-file: ${{ secrets.W3W_SENTRY_FILE }}
sentry-auth-token: ${{ secrets.W3W_SENTRY_AUTH_TOKEN }}
apple-username: ${{ secrets.APPLE_USERNAME }}
apple-key-id: ${{ secrets.APPLE_KEY_ID }}
apple-key-content: ${{ secrets.APPLE_KEY_CONTENT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-wallet-ios-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
relay-url: ${{ secrets.ENV_RELAY_URL }}
sentry-dsn: ${{ secrets.W3W_SENTRY_DSN }}
sentry-file: ${{ secrets.W3W_SENTRY_FILE }}
sentry-auth-token: ${{ secrets.W3W_SENTRY_AUTH_TOKEN }}
apple-username: ${{ secrets.APPLE_USERNAME }}
apple-key-id: ${{ secrets.APPLE_KEY_ID }}
apple-key-content: ${{ secrets.APPLE_KEY_CONTENT }}
Expand Down
2 changes: 2 additions & 0 deletions dapps/W3MWagmi/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ SENTRY_DISABLE_AUTO_UPLOAD=true

# debug, internal, production
ENV_SENTRY_TAG='debug'

SENTRY_AUTH_TOKEN=''
3 changes: 2 additions & 1 deletion dapps/W3MWagmi/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ web-build/
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!.yarn/versions
.env.local
14 changes: 13 additions & 1 deletion dapps/W3MWagmi/app.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"name": "W3MWagmi"
"name": "W3MWagmi",
"expo": {
"plugins": [
[
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"project": "w3m-wagmi-react-native",
"organization": "walletconnect"
}
]
]
}
}

0 comments on commit 6146552

Please sign in to comment.