ci: fix eval #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |