fix(ci): move replacing version in desktop release to action

This commit is contained in:
kolaente 2025-02-08 19:08:25 +01:00
parent 411361b53e
commit f758312fb6
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 5 additions and 11 deletions

View File

@ -37,6 +37,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Git describe
id: ghd
uses: proudust/gh-describe@v2
- name: Set version
id: version
run: |
@ -46,14 +49,14 @@ jobs:
VERSION="unstable"
fi
echo version=$VERSION >> "$GITHUB_OUTPUT"
- name: Build desktop app
working-directory: desktop
run: |
wget "https://dl.vikunja.io/frontend/vikunja-frontend-${{ steps.version.outputs.version }}.zip"
unzip "vikunja-frontend-${{ steps.version.outputs.version }}.zip" -d frontend
sed -i 's/\/api\/v1//g' frontend/index.html
./bumpp.sh
sed -i "s/\${version}/${{ steps.ghd.outputs.describe }}/g" package.json
sed -i "s/\"version\": \".*\"/\"version\": \"${{ steps.ghd.outputs.describe }}\"/" package.json
npm install -g corepack && corepack enable && pnpm config set store-dir .cache/pnpm
pnpm install --fetch-timeout 100000
pnpm dist --linux --windows

View File

@ -1,9 +0,0 @@
#!/bin/sh
set -xe
frontend_version=$(git describe --tags --always --abbrev=10)
sed -i "s/\${version}/$frontend_version/g" package.json
sed -i "s/\"version\": \".*\"/\"version\": \"$frontend_version\"/" package.json