Update generate.yml

This commit is contained in:
Igor Pečovnik
2023-03-14 11:28:16 +01:00
committed by GitHub
parent 8459c75f09
commit 563361dd69

View File

@@ -98,3 +98,14 @@ jobs:
# SHARE_LOG=yes to share logs to pastebin
sudo rm -rf output/debs/* || true
bash ./compile.sh kernel "BRANCH=${{env.BRANCH}}" "BOARD=${{env.BOARD}}" SHARE_LOG=yes CLEAN_LEVEL="alldebs"
- name: Deploy to server
if: ${{ github.repository_owner == 'Armbian' }}
run: |
if ! command -v "lftp" > /dev/null 2>&1; then
sudo apt-get -y -qq install lftp
fi
lftp -u upload, -e "set sftp:connect-program ssh -ax -i $HOME/.ssh/${{ env.RANDOM }}; set net:timeout 4;set net:max-retries 6;mirror -R --no-empty-dirs --parallel=8 --no-perms build/output/debs/ debs/ ;bye" sftp://users.armbian.com
lftp -u upload, -e "set sftp:connect-program ssh -ax -i $HOME/.ssh/${{ env.RANDOM }}; set net:timeout 4;set net:max-retries 6;mirror -R --no-empty-dirs --parallel=8 --no-perms build/output/debs-beta/ debs-beta/ ;bye" sftp://users.armbian.com