github actions: finally remove uploads to grimler.se
Shouldn't be needed anymore.
This commit is contained in:
parent
c9e8d1cb2b
commit
3ff64f973d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue