Skip to content

Commit e364ab7

Browse files
committed
refactor/EWM-497: clean cache for use new anti_phishing file
1 parent 994e50c commit e364ab7

File tree

1 file changed

+19
-36
lines changed

1 file changed

+19
-36
lines changed

.github/workflows/app-deploy.yaml

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,6 @@ jobs:
7777
exit 1
7878
fi
7979
80-
- name: Fetch anti-phishing lists
81-
run: |
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
88-
89-
- name: Upload anti-phishing file
90-
uses: actions/upload-artifact@v4
91-
with:
92-
name: anti-phishing-json
93-
path: assets/config/anti_phishing.json
94-
9580
- name: Read Flutter version
9681
id: read_flutter
9782
run: echo "flutter_version=$(cat .github/configs/flutter_version)" >> $GITHUB_OUTPUT
@@ -282,27 +267,6 @@ jobs:
282267
cache: true
283268
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
284269

285-
- name: Remove default anti_phishing.json
286-
run: |
287-
rm -f assets/config/anti_phishing.json
288-
289-
- name: Download anti-phishing file
290-
uses: actions/download-artifact@v4
291-
with:
292-
name: anti-phishing-json
293-
path: assets/config
294-
295-
- name: Refresh Flutter assets manifest
296-
run: |
297-
touch assets/config/anti_phishing.json
298-
dart pub get
299-
300-
- name: Debug anti_phishing.json
301-
run: |
302-
echo "→ Content assets/config:"
303-
ls -l assets/config
304-
cat assets/config/anti_phishing.json
305-
306270
- name: Display Flutter version
307271
run: flutter --version
308272

@@ -327,6 +291,25 @@ jobs:
327291
- name: Display flavor target
328292
run: echo "Flavor target is = ${{ inputs.flavor }}"
329293

294+
- name: Fetch & merge anti-phishing lists
295+
run: |
296+
curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json \
297+
-o /tmp/blacklist1.json
298+
curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json \
299+
-o /tmp/config.json
300+
mkdir -p assets/config
301+
jq -s '(.[0] + .[1].blacklist) | unique | { blacklist: . }' \
302+
/tmp/blacklist1.json /tmp/config.json \
303+
> assets/config/anti_phishing.json
304+
echo "→ New anti_phishing.json:"
305+
head -n 5 assets/config/anti_phishing.json
306+
307+
- name: Flutter clean
308+
run: flutter clean
309+
310+
- name: Get Flutter packages
311+
run: dart pub get
312+
330313
- name: Build and deploy
331314
run: |
332315
bash scripts/build.sh \

0 commit comments

Comments
 (0)