github actions: finally remove uploads to grimler.se

Shouldn't be needed anymore.
This commit is contained in:
Leonid Pliushch 2021-06-03 15:52:48 +03:00
parent c9e8d1cb2b
commit 3ff64f973d
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 0 additions and 26 deletions

View File

@ -176,29 +176,3 @@ jobs:
-H 'Content-Type: application/json' --data '{"Signing": {"Passphrase": "${{ secrets.GPG_PASSPHRASE }}"}}' \
https://packages.termux.org/aptly-api/publish/${REPOSITORY_NAME}/${REPOSITORY_DISTRIBUTION}
fi
- name: Setup ssh key and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
echo "${{ secrets.KNOWN_HOST_ENTRY }}" >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK
ssh-add - <<< "${{ secrets.SSHKEY }}"
- name: Upload to grimler.se
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
# Zip the deb archives to only do one transfer to the repo.
# This makes it easier to parse it, we can run one update job
# instead of one for each arch on the server.
archive="termux-packages-${{ github.sha }}.zip"
deb_archives=$(find -maxdepth 1 -name "debs-*-${{ github.sha }}.tar")
if [ -z "$deb_archives" ]; then
echo "No archives to upload found"
exit 0
fi
zip $archive ${deb_archives}
sftp -P ${{ secrets.PORT }} ${{ secrets.USER }}@grimler.se <<EOF
put $archive /debs/
EOF