workflows: re-structure upload job
To try to fix job error.
This commit is contained in:
parent
12c5b81e86
commit
e62c896722
13
.github/workflows/packages.yml
vendored
13
.github/workflows/packages.yml
vendored
@ -165,11 +165,12 @@ jobs:
|
|||||||
# instead of one for each arch on the server.
|
# instead of one for each arch on the server.
|
||||||
archive="termux-packages-${{ github.sha }}.zip"
|
archive="termux-packages-${{ github.sha }}.zip"
|
||||||
deb_archives=$(find -maxdepth 1 -name "debs-*-${{ github.sha }}.tar")
|
deb_archives=$(find -maxdepth 1 -name "debs-*-${{ github.sha }}.tar")
|
||||||
if [ -n "$deb_archives" ]; then
|
|
||||||
zip $archive ${deb_archives}
|
if [ -z "$deb_archives" ]; then
|
||||||
sftp -P ${{ secrets.PORT }} ${{ secrets.USER }}@grimler.se <<EOF
|
|
||||||
put $archive /debs/
|
|
||||||
EOF
|
|
||||||
else
|
|
||||||
echo "No archives to upload found"
|
echo "No archives to upload found"
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
zip $archive ${deb_archives}
|
||||||
|
sftp -P ${{ secrets.PORT }} ${{ secrets.USER }}@grimler.se <<EOF
|
||||||
|
put $archive /debs/
|
||||||
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user