better-deploy #5

Merged
arif merged 7 commits from better-deploy into main 2025-08-31 18:22:50 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2b489e83ba - Show all commits

View File

@@ -18,8 +18,8 @@ jobs:
run: bun install
- name: Build
run: bun run build
- name: Write git hash into dist
run: echo "export const GIT_HASH = '$(git rev-parse HEAD)';" > dist/git-hash.js
- name: Write GITHUB_SHA into dist
run: echo "export const GITHUB_SHA = '$GITHUB_SHA';" > dist/git-hash.js
- name: Create Build Artifact
uses: christopherhx/gitea-upload-artifact@v4
with:

View File

@@ -16,7 +16,7 @@ http {
index index.html;
location / {
try_files $uri $uri/ /index.html;
try_files $uri $uri/ /index.html /git-hash.js;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {