diff --git a/.gitea/workflows/apk-publish.yml b/.gitea/workflows/apk-publish.yml index b44c8a2..2ed438e 100644 --- a/.gitea/workflows/apk-publish.yml +++ b/.gitea/workflows/apk-publish.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Install build dependencies run: | - apk add --no-cache git go abuild make + apk add --no-cache git go abuild make nodejs curl openssl - name: Checkout repository uses: actions/checkout@v4 @@ -21,10 +21,11 @@ jobs: - name: Setup abuild for package signing run: | mkdir -p ~/.abuild - echo "PACKAGER_PRIVKEY=/home/runner/.abuild/private_key.rsa" > ~/.abuild/abuild.conf - echo "PACKAGER_PUBKEY=/home/runner/.abuild/private_key.rsa.pub" >> ~/.abuild/abuild.conf + echo "PACKAGER_PRIVKEY=$HOME/.abuild/private_key.rsa" > ~/.abuild/abuild.conf + echo "PACKAGER_PUBKEY=$HOME/.abuild/private_key.rsa.pub" >> ~/.abuild/abuild.conf openssl genrsa -out ~/.abuild/private_key.rsa 2048 openssl rsa -pubout -in ~/.abuild/private_key.rsa -out ~/.abuild/private_key.rsa.pub + cp ~/.abuild/private_key.rsa.pub /etc/apk/keys/ abuild-keygen -a -n - name: Prepare source @@ -47,12 +48,12 @@ jobs: - name: Find built package id: find_package run: | - find /home/runner/packages -name "*.apk" -type f > packages.txt + find "$HOME/packages" -name "*.apk" -type f > packages.txt echo "package_path=$(head -1 packages.txt)" >> $GITHUB_OUTPUT - name: Publish to Gitea Registry run: | - apk_file=$(find /home/runner/packages -name "*.apk" -type f | head -1) + apk_file=$(find "$HOME/packages" -name "*.apk" -type f | head -1) branch=$(echo "${{ github.ref_name }}" | sed 's/^v//') curl -X PUT \ -H "Authorization: token ${{ secrets.ACCESS_TOKEN }}" \