2 Commits

Author SHA1 Message Date
dfb6db8d1d fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m45s
2025-11-11 23:01:45 +01:00
b8577b4bac fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
2025-11-11 22:57:08 +01:00

View File

@@ -14,15 +14,16 @@ jobs:
- name: Install rust toolchain
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build binaries
run: cargo build --release
run: cargo build --quiet --release
- name: Install cargo-deb
run: cargo install cargo-deb
run: cargo install --quiet cargo-deb
- name: Build Debian package
run: cargo deb
- name: Upload Debian package to Gitea registry
env:
GITEA_OWNER: ${{ secrets.GITEA_OWNER }}
GITEA_OWNER: ${{ github.repository_owner }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_SERVER_URL: ${{ github.server_url }}
DEB_DISTRIBUTIONS: noble,plucky,questing
DEB_COMPONENT: main
DEB_ARCH: amd64
@@ -39,7 +40,7 @@ jobs:
for DISTRO in "${DISTROS[@]}"; do
echo "Uploading ${DEB_FILE} to ${GITEA_SERVER_URL} for owner ${GITEA_OWNER}"
curl -sSf -X PUT \
-H "Authorization: token ${GITEA_TOKEN}" \
--user "${GITEA_OWNER}:${GITEA_TOKEN}" \
--upload-file "${DEB_FILE}" \
"${GITEA_SERVER_URL}/api/packages/${GITEA_OWNER}/debian/pool/${DISTRO}/main/upload"
done