CI: Get Windows build's version from Cargo.toml
Some checks failed
/ verify (push) Has been cancelled

This commit is contained in:
Juno Takano 2026-06-20 20:39:40 -03:00
commit 1efe2d4859
No known key found for this signature in database

View file

@ -135,7 +135,7 @@ jobs:
- name: Publish x64 Windows MSVC binary to git.jutty.dev registry - name: Publish x64 Windows MSVC binary to git.jutty.dev registry
if: ${{ inputs.upload }} if: ${{ inputs.upload }}
run: | run: |
version=$(./target/x86_64-unknown-linux-musl/release/en --version) version=$(grep '^version' Cargo.toml | cut -d '"' -f 2)
api_root=https://git.jutty.dev/api api_root=https://git.jutty.dev/api
url=$api_root/packages/jutty/generic/en/$version/en-x64-windows-msvc url=$api_root/packages/jutty/generic/en/$version/en-x64-windows-msvc