forked from extern/fediwall
Fix version string when building with github actions
This commit is contained in:
parent
a766bb1ba8
commit
c0c770e86c
2
.github/workflows/deploy-pages.yml
vendored
2
.github/workflows/deploy-pages.yml
vendored
@ -15,6 +15,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # Needed for tags
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
@ -9,9 +9,11 @@ var version;
|
||||
|
||||
try {
|
||||
var gitInfo = gitDescribeSync();
|
||||
if(gitInfo.tag) {
|
||||
version = `${gitInfo.tag}`;
|
||||
if (gitInfo.distance)
|
||||
version += `-${gitInfo.distance}+${gitInfo.hash}`
|
||||
}
|
||||
} catch { }
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
|
Loading…
Reference in New Issue
Block a user