Skip to content

ci: fix eval

ci: fix eval #47

on:
push:
name: Test makepkg on ubuntu
jobs:
hello:
strategy:
fail-fast: false
matrix:
include:
- aur_repo:
- aur_repo: -bin
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- run: |
pacman --noconfirm -Syu
pacman --noconfirm -S base-devel sudo git openssh wget rust
useradd -m build
git clone --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} fixit
chown -R build fixit
cd fixit
sudo -u build ./packaging/aur${{ matrix.aur_repo }}.sh v0.3.1-beta
sudo -u build bash -c 'eval "$(ssh-agent -s)"'
sudo -u build mkdir ~/.ssh
sudo -u build echo "${{ secrets.AUR_SSH_KEY }}" >> ~/.ssh/id_ed25519
sudo -u build chmod 600 ~/.ssh/id_ed25519
sudo -u build ssh-add ~/.ssh/id_ed25519
git clone [email protected]/fixit${{ matrix.aur_repo }}.git aur
chown -R build aur
cd aur
sudo -u build cp ../{PKGBUILD,.SRCINFO} .
sudo -u build git commit -a -m "chore: release ${{ github.ref_name }}"