Skip to content

Commit 13cc98a

Browse files
limichangelimichange
authored andcommitted
feat: test ci
1 parent c283608 commit 13cc98a

File tree

4 files changed

+63
-54
lines changed

4 files changed

+63
-54
lines changed

.github/workflows/release-android-debug.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: release-android-debug
22

33
on:
4+
pull_request:
5+
branches:
6+
- feat/prime-login0-limi
7+
push:
8+
branches:
9+
- feat/prime-login0-limi
410
workflow_dispatch:
511
inputs:
612
is-split-bundle:
@@ -19,16 +25,16 @@ jobs:
1925
# https://github.com/orgs/community/discussions/25678
2026
- name: Delete huge unnecessary tools folder
2127
run: rm -rf /opt/hostedtoolcache
22-
28+
2329
- name: Checkout Source Code
2430
uses: actions/checkout@v3
2531
with:
2632
lfs: true
2733

28-
- name: Run Shared Env Setup
34+
- name: Run Shared Env Setup
2935
uses: ./.github/actions/shared-env
3036
with:
31-
env_file_name: ".env.expo"
37+
env_file_name: '.env.expo'
3238
sentry_project: ''
3339
covalent_key: ${{ secrets.COVALENT_KEY }}
3440
sentry_token: ${{ secrets.SENTRY_TOKEN }}
@@ -85,7 +91,7 @@ jobs:
8591
# https://github.com/orgs/community/discussions/25678
8692
- name: Delete huge unnecessary tools folder
8793
run: rm -rf /opt/hostedtoolcache
88-
94+
8995
- name: Upload Main Debug APK
9096
uses: actions/upload-artifact@v3
9197
with:
@@ -99,7 +105,7 @@ jobs:
99105
name: release-google-debug
100106
path: |
101107
./apps/mobile/android/app/build/outputs/apk/google/debug
102-
108+
103109
- name: Upload Huawei Debug APK
104110
uses: actions/upload-artifact@v3
105111
with:

.github/workflows/release-android.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
name: release-android
22

33
on:
4-
workflow_run:
5-
workflows:
6-
- daily-build
7-
types:
8-
- completed
4+
pull_request:
5+
branches:
6+
- feat/prime-login0-limi
7+
push:
8+
branches:
9+
- feat/prime-login0-limi
910
workflow_dispatch:
1011
inputs:
1112
is-split-bundle:
1213
description: "Should it run as split-bundle? (keep it null if you don't need it)"
1314
required: false
1415
default: ''
1516

16-
jobs:
17+
jobs:
1718
release-android:
1819
runs-on: ubuntu-latest
1920
if: ${{ !github.event.workflow_run || (github.event.workflow_run && github.event.workflow_run.conclusion == 'success') }}
@@ -22,14 +23,14 @@ jobs:
2223
uses: actions/checkout@v3
2324
with:
2425
lfs: true
25-
26-
- name: Run Shared Env Setup
26+
27+
- name: Run Shared Env Setup
2728
uses: ./.github/actions/shared-env
2829
with:
2930
additional_env: |
3031
NO_FLIPPER=1
3132
SENTRY_DISABLE_AUTO_UPLOAD=false
32-
env_file_name: ".env.expo"
33+
env_file_name: '.env.expo'
3334
sentry_project: ''
3435
covalent_key: ${{ secrets.COVALENT_KEY }}
3536
sentry_token: ${{ secrets.SENTRY_TOKEN }}
@@ -72,7 +73,7 @@ jobs:
7273
run: |
7374
# pass BUILD_NUMBER as env variable to expo server
7475
echo "BUILD_NUMBER=${{ env.BUILD_NUMBER }}" >> .env.version
75-
76+
7677
- name: Write .sentry.properties
7778
run: |
7879
echo "auth.token=${{ secrets.SENTRY_TOKEN }}" >> apps/mobile/android/sentry.properties
@@ -84,14 +85,12 @@ jobs:
8485
run: |
8586
yarn
8687
87-
8888
- name: Build WebEmbed
8989
env:
9090
NODE_OPTIONS: '--max_old_space_size=8192'
9191
SENTRY_DISABLE_AUTO_UPLOAD: 'true'
9292
run: |
9393
yarn app:web-embed:build
94-
9594
9695
- name: Build on EAS And Submit
9796
if: ${{ github.event.workflow_run }}
@@ -114,4 +113,3 @@ jobs:
114113
path: |
115114
./apps/web-embed/web-build
116115
if-no-files-found: error
117-

.github/workflows/release-desktop-winms.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: release-desktop-winms
22

33
on:
4+
pull_request:
5+
branches:
6+
- feat/prime-login0-limi
7+
push:
8+
branches:
9+
- feat/prime-login0-limi
410
workflow_run:
511
workflows:
612
- daily-build
@@ -22,10 +28,10 @@ jobs:
2228
with:
2329
lfs: true
2430

25-
- name: Run Shared Env Setup
31+
- name: Run Shared Env Setup
2632
uses: ./.github/actions/shared-env
2733
with:
28-
env_file_name: ".env"
34+
env_file_name: '.env'
2935
sentry_project: 'desktop-winms'
3036
covalent_key: ${{ secrets.COVALENT_KEY }}
3137
sentry_token: ${{ secrets.SENTRY_TOKEN }}
@@ -36,8 +42,6 @@ jobs:
3642
revenuecat_api_key_apple: ${{ secrets.REVENUECAT_API_KEY_APPLE }}
3743
revenuecat_api_key_google: ${{ secrets.REVENUECAT_API_KEY_GOOGLE }}
3844

39-
40-
4145
- name: 'Setup ENV'
4246
run: |
4347
eval "$(node -e 'const v=require("./apps/desktop/package.json").version; console.log("pkg_version="+v)')"
@@ -124,15 +128,15 @@ jobs:
124128
!./apps/desktop/build-electron/linux-unpacked
125129
!./apps/desktop/build-electron/builder-debug.yml
126130
127-
- name: 'Notify to Slack'
128-
if: ${{ github.event.workflow_run }}
129-
uses: onekeyhq/actions/slack-notify-webhook@main
130-
with:
131-
web-hook-url: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
132-
secret-key: ${{ secrets.ACTION_SIGN_SECERT_KEY }}
133-
artifact-type: Desktop
134-
artifact-name: OneKey-Desktop-Win-Store
135-
artifact-bundle-id: 'so.onekey.wallet.desktop'
136-
artifact-version-name: '${{ steps.dotenv.outputs.version }}@${{ env.BUILD_NUMBER }}'
137-
artifact-version-code: '${{ env.BUILD_NUMBER }}'
138-
artifact-download-url: '${{ env.ARTIFACTS_URL }}'
131+
# - name: 'Notify to Slack'
132+
# if: ${{ github.event.workflow_run }}
133+
# uses: onekeyhq/actions/slack-notify-webhook@main
134+
# with:
135+
# web-hook-url: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
136+
# secret-key: ${{ secrets.ACTION_SIGN_SECERT_KEY }}
137+
# artifact-type: Desktop
138+
# artifact-name: OneKey-Desktop-Win-Store
139+
# artifact-bundle-id: 'so.onekey.wallet.desktop'
140+
# artifact-version-name: '${{ steps.dotenv.outputs.version }}@${{ env.BUILD_NUMBER }}'
141+
# artifact-version-code: '${{ env.BUILD_NUMBER }}'
142+
# artifact-download-url: '${{ env.ARTIFACTS_URL }}'

.github/workflows/release-ext.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: release-ext
22

33
on:
4-
workflow_run:
5-
workflows:
6-
- daily-build
7-
types:
8-
- completed
4+
pull_request:
5+
branches:
6+
- feat/prime-login0-limi
7+
push:
8+
branches:
9+
- feat/prime-login0-limi
910
workflow_dispatch:
1011

1112
jobs:
@@ -21,11 +22,11 @@ jobs:
2122
uses: actions/checkout@v3
2223
with:
2324
lfs: true
24-
25-
- name: Run Shared Env Setup
25+
26+
- name: Run Shared Env Setup
2627
uses: ./.github/actions/shared-env
2728
with:
28-
env_file_name: ".env"
29+
env_file_name: '.env'
2930
sentry_project: 'chrome-extension'
3031
covalent_key: ${{ secrets.COVALENT_KEY }}
3132
sentry_token: ${{ secrets.SENTRY_TOKEN }}
@@ -89,15 +90,15 @@ jobs:
8990
path: |
9091
./apps/ext/build/_dist/*.zip
9192
92-
- name: 'Notify to Slack'
93-
if: ${{ github.event.workflow_run }}
94-
uses: onekeyhq/actions/slack-notify-webhook@main
95-
with:
96-
web-hook-url: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
97-
secret-key: ${{ secrets.ACTION_SIGN_SECERT_KEY }}
98-
artifact-type: Extension
99-
artifact-name: OneKey-Extension-RN
100-
artifact-bundle-id: 'so.onekey.wallet.extension'
101-
artifact-version-name: '${{ steps.dotenv.outputs.version }}@${{ env.BUILD_NUMBER }}'
102-
artifact-version-code: '${{ env.BUILD_NUMBER }}'
103-
artifact-download-url: '${{ env.ARTIFACTS_URL }}'
93+
# - name: 'Notify to Slack'
94+
# if: ${{ github.event.workflow_run }}
95+
# uses: onekeyhq/actions/slack-notify-webhook@main
96+
# with:
97+
# web-hook-url: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
98+
# secret-key: ${{ secrets.ACTION_SIGN_SECERT_KEY }}
99+
# artifact-type: Extension
100+
# artifact-name: OneKey-Extension-RN
101+
# artifact-bundle-id: 'so.onekey.wallet.extension'
102+
# artifact-version-name: '${{ steps.dotenv.outputs.version }}@${{ env.BUILD_NUMBER }}'
103+
# artifact-version-code: '${{ env.BUILD_NUMBER }}'
104+
# artifact-download-url: '${{ env.ARTIFACTS_URL }}'

0 commit comments

Comments
 (0)