diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9ad74c1..fa5e420 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -60,7 +60,7 @@ jobs: # sed -i s/__TIMESTAMP__/$stamp/g frontend/serviceworker.js # cat frontend/serviceworker.js - test -d api/templates && test -f api/templates/spa.html && rm api/templates/spa.html + test -d api/templates && test -L api/templates/spa.html && rm api/templates/spa.html || test -d api/templates && test -f api/templates/spa.html && rm api/templates/spa.html test -d api/templates && cp frontend/spa.html api/templates/spa.html cp frontend/spa.html api/templates/spa.html echo ______ frontend/spa.html ______ diff --git a/api/templates/spa.html b/api/templates/spa.html new file mode 120000 index 0000000..d5c0904 --- /dev/null +++ b/api/templates/spa.html @@ -0,0 +1 @@ +frontend/spa.html \ No newline at end of file