Update .gitea/workflows/appimage.yml

This commit is contained in:
pascalyazid committed 2026-10-22 00:06:39 +02:00
1 parent 410b3c4b3a
commit 1e478850ca
1 file changed
+4 -2
+4 -2
View File
@@ -107,7 +107,7 @@ jobs:
if: env.SKIP != '1' if: env.SKIP != '1'
run: | run: |
set -euo pipefail set -euo pipefail
useradd -m builder # makepkg refuses to run as root id builder >/dev/null 2>&1 || useradd -m builder
mkdir pkg && cd pkg mkdir pkg && cd pkg
git clone "${{ gitea.server_url }}/${{ env.PACKAGING }}.git" . git clone "${{ gitea.server_url }}/${{ env.PACKAGING }}.git" .
cp ../src/packages/desktop/appimage/io.github.viren070.aiostreams.AppImage \ cp ../src/packages/desktop/appimage/io.github.viren070.aiostreams.AppImage \
@@ -117,6 +117,8 @@ jobs:
PKGBUILD PKGBUILD
chown -R builder:builder . chown -R builder:builder .
su builder -c "cd '$PWD' && makepkg -f" su builder -c "cd '$PWD' && makepkg -f"
# the filename is whatever pkgver-pkgrel the PKGBUILD declares
pkgfile=$(ls aiostreams-desktop-bin-*.pkg.tar.zst)
curl --user "${{ env.OWNER }}:${{ secrets.PUBLISH_TOKEN }}" \ curl --user "${{ env.OWNER }}:${{ secrets.PUBLISH_TOKEN }}" \
--upload-file "aiostreams-desktop-bin-${{ env.VERSION }}-1-x86_64.pkg.tar.zst" \ --upload-file "$pkgfile" \
"${{ gitea.server_url }}/api/packages/${{ env.OWNER }}/arch/aiostreams" "${{ gitea.server_url }}/api/packages/${{ env.OWNER }}/arch/aiostreams"