fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
This commit is contained in:
@@ -13,16 +13,13 @@ 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
|
||||
- name: Upload Debian package to Gitea registry
|
||||
env:
|
||||
GITEA_OWNER: ${{ github.repository_owner }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_SERVER_URL: ${{ github.server_url }}
|
||||
DEB_DISTRIBUTIONS: noble,plucky,questing
|
||||
DEB_COMPONENT: main
|
||||
@@ -40,7 +37,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
|
||||
|
||||
Reference in New Issue
Block a user