fix: remove dependence on git commit

This commit is contained in:
Damillora 2025-02-24 15:06:40 +00:00
parent ae5f17ede8
commit 4db1bbec38
2 changed files with 2 additions and 22 deletions

View File

@ -32,23 +32,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build Binaries
id: docker_build_bin
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
target: runtime
outputs: |
type=local,dest=./output/${{ env.PLATFORM }}
-
name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: phoebe-${{ env.PLATFORM }}
path: ./output
retention-days: 7
-
name: Build and push (No tag)
name: Build and push
id: docker_build_git
uses: docker/build-push-action@v6
with:

View File

@ -2,8 +2,6 @@ import adapter from "@sveltejs/adapter-static";
import { execSync } from "child_process";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
const commit = execSync('git rev-parse HEAD').toString().trim().substring(0, 7);
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
@ -18,9 +16,7 @@ const config = {
fallback: 'app.html', // may differ from host to host
}),
version: {
name: `${process.env.npm_package_version}-${commit}`,
name: `${process.env.npm_package_version}`,
}
},
};