Compare commits

..

2 Commits

Author SHA1 Message Date
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

View File

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