diff --git a/.gitea/workflows/apk-publish.yml b/.gitea/workflows/apk-publish.yml index cc448b6..15f84a8 100644 --- a/.gitea/workflows/apk-publish.yml +++ b/.gitea/workflows/apk-publish.yml @@ -36,8 +36,15 @@ jobs: run: | cd packaging/alpine pkgver=$(echo "${{ github.ref_name }}" | sed 's/^v//') + pkgname="axolotl" + sed -i "s/pkgver=.*/pkgver=$pkgver/" APKBUILD - sed -i "s|source=.*|source=\"\$pkgname-\$pkgver.tar.gz::${{ github.server_url }}/${{ github.repository }}/archive/\$pkgver.tar.gz\"|" APKBUILD + + mkdir -p /tmp/distfiles + cd ../.. + git archive --format=tar.gz --prefix="$pkgname-$pkgver/" -o "/tmp/distfiles/$pkgname-$pkgver.tar.gz" HEAD + + sed -i "s|source=.*|source=\"/tmp/distfiles/\$pkgname-\$pkgver.tar.gz\"|" packaging/alpine/APKBUILD chown -R build:abuild . - name: Generate checksums