From 30d082c95f098f986924b9ed22f6946d558ddf35 Mon Sep 17 00:00:00 2001 From: Nicholas Schwab Date: Mon, 5 May 2025 16:46:53 +0200 Subject: [PATCH 1/2] Fix problems with arch release process. Signed-off-by: Nicholas Schwab --- .github/workflows/create-release.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 6a41405..ffcd69f 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -139,20 +139,17 @@ jobs: create_arch_package: runs-on: ubuntu-latest container: - image: archlinux:latest + # Includes tools needed by makepkg + image: archlinux:base-devel steps: - name: Checkout source code uses: actions/checkout@v4 - - name: Setup ssh for aur - run: | - echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - echo "aur.archlinux.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuBKrPzbawxA/k2g6NcyV5jmqwJ2s+zpgZGZ7tpLIcN" > ~/.ssh/authorized_keys - - name: Update aur PKGBUILD run: | pacman -Syu --noconfirm + # install anything that is needed for setting up aur repo pacman -S --noconfirm openssh git useradd -m -G wheel runner @@ -161,9 +158,10 @@ jobs: chown -R runner:runner . su runner -c ' - # Used by PKGBUILD internally - VERSION=${GITHUB_REF#refs/tags/v} - export VERSION + set -e + # Used by PKGBUILD internally + export TAG="${{ github.ref }}" + export VERSION=$(echo "${TAG}" | sed 's/^refs\/tags\/v//') mkdir -p ~/.ssh echo "${{ secrets.AUR_SSH_KEY }}" > ~/.ssh/aur @@ -178,7 +176,8 @@ jobs: cp PKGBUILD aur/ cd aur/ makepkg --printsrcinfo > .SRCINFO - makepkg + # Install any needed dependencies and create the package + makepkg -s --noconfirm git config user.name "info@tngtech.com" git config user.email "TNG Technology Consulting" From 94789c41c5189fd0be38cf06dc836c89979202fe Mon Sep 17 00:00:00 2001 From: Nicholas Schwab Date: Tue, 6 May 2025 08:40:53 +0200 Subject: [PATCH 2/2] Fix order of makepkg and SRCINFO creation. Signed-off-by: Nicholas Schwab --- .github/workflows/create-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index ffcd69f..7743edc 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -175,9 +175,10 @@ jobs: cp PKGBUILD aur/ cd aur/ - makepkg --printsrcinfo > .SRCINFO # Install any needed dependencies and create the package makepkg -s --noconfirm + # Needs to be run after makepkg + makepkg --printsrcinfo > .SRCINFO git config user.name "info@tngtech.com" git config user.email "TNG Technology Consulting"