Compare commits

..

4 Commits

Author SHA1 Message Date
028a803447 fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m47s
2025-11-12 08:56:40 +01:00
d3c611974f 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 23:04:31 +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
b705e34086 fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m46s
2025-11-11 22:51:19 +01:00

View File

@@ -13,16 +13,14 @@ jobs:
uses: https://github.com/actions/checkout@v4
- name: Install rust toolchain
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build binaries
run: cargo build --release
- name: Install cargo-deb
run: cargo install cargo-deb
run: cargo install --quiet cargo-deb
- name: Build Debian package
run: cargo deb
run: cargo deb --quiet
- name: Upload Debian package to Gitea registry
env:
GITEA_SERVER_URL: "https://gitea.champs-libres.be"
GITEA_OWNER: ${{ secrets.GITEA_OWNER }}
GITEA_OWNER: ${{ github.repository_owner }}
GITEA_SERVER_URL: ${{ github.server_url }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
DEB_DISTRIBUTIONS: noble,plucky,questing
DEB_COMPONENT: main
@@ -40,8 +38,8 @@ 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}" \
--upload-file @"${DEB_FILE}" \
--user "${GITEA_OWNER}:${GITEA_TOKEN}" \
--upload-file "${DEB_FILE}" \
"${GITEA_SERVER_URL}/api/packages/${GITEA_OWNER}/debian/pool/${DISTRO}/main/upload"
done
- name: Read release content