Skip to content

Commit 2d5e337

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

File tree

1 file changed

+17
-34
lines changed

1 file changed

+17
-34
lines changed

.github/workflows/app-deploy.yaml

Lines changed: 17 additions & 34 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,26 +267,24 @@ jobs:
282267
cache: true
283268
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
284269

285-
- name: Remove default anti_phishing.json
270+
- name: Fetch & merge anti-phishing lists
286271
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
272+
curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json \
273+
-o /tmp/blacklist1.json
274+
curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json \
275+
-o /tmp/config.json
276+
mkdir -p assets/config
277+
jq -s '(.[0] + .[1].blacklist) | unique | { blacklist: . }' \
278+
/tmp/blacklist1.json /tmp/config.json \
279+
> assets/config/anti_phishing.json
280+
echo "→ New anti_phishing.json:"
281+
head -n 5 assets/config/anti_phishing.json
282+
283+
- name: Flutter clean
284+
run: flutter clean
285+
286+
- name: Get Flutter packages
287+
run: dart pub get
305288

306289
- name: Display Flutter version
307290
run: flutter --version

0 commit comments

Comments
 (0)