mirror of
https://github.com/Damillora/phoebe.git
synced 2025-03-10 05:57:22 +00:00
fix: remove dependence on git commit
This commit is contained in:
parent
ae5f17ede8
commit
4db1bbec38
18
.github/workflows/dev.yml
vendored
18
.github/workflows/dev.yml
vendored
@ -32,23 +32,7 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build Binaries
|
name: Build and push
|
||||||
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)
|
|
||||||
id: docker_build_git
|
id: docker_build_git
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
@ -2,8 +2,6 @@ import adapter from "@sveltejs/adapter-static";
|
|||||||
import { execSync } from "child_process";
|
import { execSync } from "child_process";
|
||||||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
||||||
|
|
||||||
const commit = execSync('git rev-parse HEAD').toString().trim().substring(0, 7);
|
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||||
@ -18,9 +16,7 @@ const config = {
|
|||||||
fallback: 'app.html', // may differ from host to host
|
fallback: 'app.html', // may differ from host to host
|
||||||
}),
|
}),
|
||||||
version: {
|
version: {
|
||||||
|
name: `${process.env.npm_package_version}`,
|
||||||
name: `${process.env.npm_package_version}-${commit}`,
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user