Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -177,8 +175,10 @@ jobs:

cp PKGBUILD aur/
cd aur/
# Install any needed dependencies and create the package
makepkg -s --noconfirm
# Needs to be run after makepkg
makepkg --printsrcinfo > .SRCINFO
makepkg

git config user.name "info@tngtech.com"
git config user.email "TNG Technology Consulting"
Expand Down