@@ -79,23 +79,18 @@ jobs:
79
79
80
80
- name : Fetch anti-phishing lists
81
81
run : |
82
- curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json \
83
- -o /tmp/blacklist1.json
84
- curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json \
85
- -o /tmp/config.json
86
-
87
- jq -s '
88
- (.[0] + .[1].blacklist)
89
- | unique
90
- | { blacklist: . }
91
- ' /tmp/blacklist1.json /tmp/config.json \
92
- > anti_phishing.json
82
+ curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json -o /tmp/blacklist1.json
83
+ curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json -o /tmp/config.json
84
+ mkdir -p assets/config
85
+ jq -s '(.[0] + .[1].blacklist) | unique | { blacklist: . }' \
86
+ /tmp/blacklist1.json /tmp/config.json \
87
+ > assets/config/anti_phishing.json
93
88
94
89
- name : Upload anti-phishing file
95
90
uses : actions/upload-artifact@v4
96
91
with :
97
92
name : anti-phishing-json
98
- path : anti_phishing.json
93
+ path : assets/config/ anti_phishing.json
99
94
100
95
- name : Read Flutter version
101
96
id : read_flutter
@@ -175,11 +170,15 @@ jobs:
175
170
echo "ios_target is set to = ${{ env.ios_target }}"
176
171
echo "build_mode is set to = ${{ inputs.build_mode }}"
177
172
173
+ - name : Remove default anti_phishing.json
174
+ run : |
175
+ rm -f assets/config/anti_phishing.json
176
+
178
177
- name : Download anti-phishing file
179
178
uses : actions/download-artifact@v4
180
179
with :
181
180
name : anti-phishing-json
182
- path : assets/config
181
+ path : .
183
182
184
183
- name : Setup Flutter
185
184
uses : subosito/flutter-action@v2
@@ -275,11 +274,15 @@ jobs:
275
274
echo "android_target is set to = ${{ env.android_target }}"
276
275
echo "build_mode is set to = ${{ inputs.build_mode }}"
277
276
277
+ - name : Remove default anti_phishing.json
278
+ run : |
279
+ rm -f assets/config/anti_phishing.json
280
+
278
281
- name : Download anti-phishing file
279
282
uses : actions/download-artifact@v4
280
283
with :
281
284
name : anti-phishing-json
282
- path : assets/config
285
+ path : .
283
286
284
287
- name : Setup Flutter
285
288
uses : subosito/flutter-action@v2
0 commit comments