.gitea/workflows: fix deb building args
Some checks failed
Some checks failed
This commit is contained in:
@@ -49,10 +49,9 @@ jobs:
|
||||
run: cargo install cargo-deb
|
||||
|
||||
- name: Build deb package
|
||||
run: |
|
||||
./create-deb.sh \
|
||||
${{ inputs.deb_version != "" && "--deb-version " + inputs.deb_version || "" }} \
|
||||
${{ inputs.deb_revision != "" && "--deb-revision " + inputs.deb_revision || "" }}
|
||||
env:
|
||||
CREATE_DEB_DEBUG: "1"
|
||||
run: ./create-deb.sh
|
||||
|
||||
- name: Upload deb package artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
@@ -2,6 +2,20 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "${CREATE_DEB_DEBUG:-}" == "1" ]]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
if ! command -v cargo &> /dev/null; then
|
||||
echo "cargo could not be found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v cargo-deb &> /dev/null; then
|
||||
echo "cargo-deb could not be found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cargo build --release
|
||||
|
||||
mkdir -p assets/completions
|
||||
|
||||
Reference in New Issue
Block a user