Skip to content

Commit ab8f3e6

Browse files
committed
Fixes
1 parent 1592a74 commit ab8f3e6

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/custom_build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,19 @@ jobs:
107107
"${CUSTOM_DEBIAN_RELEASE}"
108108
sudo chown --recursive "$USER:$USER" out/
109109
110+
- name: Verify Debian packages were produced
111+
shell: bash
112+
run: |
113+
set -euo pipefail
114+
count=$(ls -1 out/debian/*.deb 2>/dev/null | wc -l)
115+
if [ "$count" -eq 0 ]; then
116+
echo "ERROR: No .deb files found in out/debian/. The Docker build likely failed."
117+
echo "Check the 'Build Debian packages' step logs for Docker errors."
118+
exit 1
119+
fi
120+
echo "Found $count .deb package(s):"
121+
ls -lh out/debian/*.deb
122+
110123
- name: Write build manifest
111124
shell: bash
112125
run: |

.github/workflows/custom_deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ jobs:
3535
name: ${{ inputs.artifact_name }}
3636
run-id: ${{ inputs.run_id }}
3737
github-token: ${{ github.token }}
38-
path: ./deb
3938

4039
- name: Inspect downloaded artifact
4140
shell: bash
4241
run: |
4342
set -euo pipefail
44-
find ./deb -type f -ls 2>&1 || echo "No files found in ./deb"
45-
echo "---"
46-
ls -laR ./deb/ 2>&1 || echo "Directory ./deb does not exist"
43+
echo "=== Downloaded artifact structure ==="
44+
find . -maxdepth 4 -type f -name '*.deb' -o -name 'manifest.txt' -ls
45+
echo "====================================="
4746
4847
- name: Verify runner SMB package share
4948
shell: bash
@@ -62,8 +61,8 @@ jobs:
6261
release_dir="${JELLYFIN_PACKAGE_SHARE_PATH}/custom/${short_sha}"
6362
6463
install -d -m 0775 "${release_dir}"
65-
install -m 0664 ./deb/out/debian/*.deb "${release_dir}/"
66-
install -m 0664 ./deb/out/custom/manifest.txt "${release_dir}/"
64+
install -m 0664 out/debian/*.deb "${release_dir}/"
65+
install -m 0664 out/custom/manifest.txt "${release_dir}/"
6766
ln -sfn "${release_dir}" "${JELLYFIN_PACKAGE_SHARE_PATH}/custom/latest"
6867
6968
echo "release_dir=${release_dir}" >> "${GITHUB_OUTPUT}"
@@ -88,7 +87,7 @@ jobs:
8887
8988
ssh "${ssh_opts[@]}" "${ssh_target}" \
9089
"rm -rf '${remote_tmp}' && mkdir -p '${remote_tmp}'"
91-
scp "${ssh_opts[@]}" ./deb/out/debian/*.deb \
90+
scp "${ssh_opts[@]}" out/debian/*.deb \
9291
"${ssh_target}:${remote_tmp}/"
9392
9493
# Install package preserving Ansible-managed conffiles,

0 commit comments

Comments
 (0)