Fix release workflow YAML parsing
Some checks failed
ci / build (push) Successful in 2m23s
release / release (push) Failing after 5m16s

This commit is contained in:
2026-02-24 11:19:53 +00:00
parent cb7257ed6f
commit ea5a0861fd
2 changed files with 24 additions and 16 deletions

View File

@@ -107,18 +107,18 @@ jobs:
echo "${TOKEN}" | docker login git.dvv.one -u "${USERNAME}" --password-stdin
cat > Dockerfile.relay <<EOF
FROM debian:bookworm-slim
COPY target/release/relay /usr/local/bin/relay
EXPOSE 7000 7001 25565
ENTRYPOINT ["/usr/local/bin/relay"]
EOF
printf '%s\n' \
'FROM debian:bookworm-slim' \
'COPY target/release/relay /usr/local/bin/relay' \
'EXPOSE 7000 7001 25565' \
'ENTRYPOINT ["/usr/local/bin/relay"]' \
> Dockerfile.relay
cat > Dockerfile.client <<EOF
FROM debian:bookworm-slim
COPY target/release/client /usr/local/bin/client
ENTRYPOINT ["/usr/local/bin/client"]
EOF
printf '%s\n' \
'FROM debian:bookworm-slim' \
'COPY target/release/client /usr/local/bin/client' \
'ENTRYPOINT ["/usr/local/bin/client"]' \
> Dockerfile.client
docker build -f Dockerfile.relay -t ${IMAGE_BASE}/relay:${VERSION} .
docker build -f Dockerfile.client -t ${IMAGE_BASE}/client:${VERSION} .
@@ -143,10 +143,10 @@ EOF
if: startsWith(github.ref, 'refs/tags/')
run: |
mkdir -p ~/.cargo
cat > ~/.cargo/config.toml <<EOF
[registries.gitea]
index = "sparse+${GITHUB_SERVER_URL}/api/packages/${OWNER}/cargo/"
EOF
printf '%s\n' \
'[registries.gitea]' \
"index = \"sparse+${GITHUB_SERVER_URL}/api/packages/${OWNER}/cargo/\"" \
> ~/.cargo/config.toml
- name: Publish Cargo packages
if: startsWith(github.ref, 'refs/tags/')
@@ -195,4 +195,4 @@ EOF
-H "Authorization: token ${TOKEN}" \
-F "attachment=@${file}" \
"${GITHUB_SERVER_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${release_id}/assets?name=${name}"
done
done