Skip to content

Commit

Permalink
fix: cache for web
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorniv committed May 5, 2020
1 parent c4932f7 commit e3ee766
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/dart_self.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ jobs:

- name: Build web release
run: flutter build web --release

- name: Use random for fix cache
run: |
ran=$RANDOM
echo $ran
mv -i build/web/main.dart.js build/web/main.$ran.dart.js
mv -i build/web/main.dart.js.map build/web/main.$ran.dart.js.map
sed -i '' 's/main\.dart/main\.'$ran'\.dart/g' ./build/web/index.html
sed -i '' 's/main\.dart/main\.'$ran'\.dart/g' ./build/web/flutter_service_worker.js
- name: GitHub Pages
uses: crazy-max/[email protected]
with:
Expand Down

0 comments on commit e3ee766

Please sign in to comment.