Fix apk-publish workflow: create source tarball from local git checkout
Some checks failed
Build and Publish APK Package / build-apk (push) Failing after 14s
Build and Push Docker Container / build-and-push (push) Has been cancelled

This commit is contained in:
2026-04-02 02:52:31 +02:00
parent aa5f124b5f
commit c17952e6ac

View File

@@ -36,8 +36,15 @@ jobs:
run: | run: |
cd packaging/alpine cd packaging/alpine
pkgver=$(echo "${{ github.ref_name }}" | sed 's/^v//') pkgver=$(echo "${{ github.ref_name }}" | sed 's/^v//')
pkgname="axolotl"
sed -i "s/pkgver=.*/pkgver=$pkgver/" APKBUILD 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 . chown -R build:abuild .
- name: Generate checksums - name: Generate checksums