Compare commits

...

3 Commits

Author SHA1 Message Date
f30d299071 fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m53s
2025-11-12 09:09:49 +01:00
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

View File

@@ -13,17 +13,15 @@ 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_OWNER: ${{ github.repository_owner }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_OWNER: ${{ vars.PUBLISH_USERNAME }}
GITEA_SERVER_URL: ${{ github.server_url }}
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
DEB_DISTRIBUTIONS: noble,plucky,questing
DEB_COMPONENT: main
DEB_ARCH: amd64
@@ -40,7 +38,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