diff --git a/.gitea/workflows/aur-publish.yml b/.gitea/workflows/aur-publish.yml index 4d598f8..b0f5f3b 100644 --- a/.gitea/workflows/aur-publish.yml +++ b/.gitea/workflows/aur-publish.yml @@ -80,3 +80,17 @@ jobs: fi git commit -m "Update to ${{ steps.version.outputs.version }}" git push -u origin master + + # Mirror the same PKGBUILD to https://asger.weirsøe.dk/tarballz/, the + # human-readable package index. The key is pinned on the web host to a + # forced command that can only write this one file, and a failure there + # must never turn an otherwise good AUR release red. + - name: Publish PKGBUILD to the tarballz index + continue-on-error: true + env: + TARBALLZ_SSH_KEY: ${{ secrets.TARBALLZ_SSH_KEY }} + run: | + printf '%s\n' "$TARBALLZ_SSH_KEY" > ~/.ssh/tarballz + chmod 600 ~/.ssh/tarballz + ssh -i ~/.ssh/tarballz -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new \ + root@192.168.10.148 < aur-pkg/PKGBUILD