Skip to content

Commit

Permalink
apply cache buster after build
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Bühler committed Dec 13, 2023
1 parent 5d136da commit 3eb62d1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ jobs:
cd /game
mkdir -p build
godot -v --export "HTML5" build/index.html
echo "Cache Busting"
TS=$(date +%s)
cd build
for f in index.*; do
mv $f ${f/./.$TS.}
done
sed "s/index/index.${TS}/g" index.$TS.html > index.html
- name: Cache Busting
run: |
TS=$(date +%s)
cd build
for f in index.*; do
mv $f ${f/./.$TS.}
done
sed "s/index/index.${TS}/g" index.$TS.html > index.html
working-directory: ./build

- uses: actions/upload-pages-artifact@v1
if: always()
Expand Down

0 comments on commit 3eb62d1

Please sign in to comment.