fix AUR workflow (#10)
This commit is contained in:
parent
838a3c78dd
commit
47f3b7fc89
3 changed files with 15 additions and 3 deletions
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -30,13 +30,12 @@ jobs:
|
|||
- name: Update AUR package
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
run: |
|
||||
sudo apt install makepkg
|
||||
|
||||
echo $SSH_KEY > ~/.ssh/aur
|
||||
echo $SSH_PUB_KEY > ~/.ssh/aur.pub
|
||||
export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur"
|
||||
|
||||
./scripts/aur_bump.sh
|
||||
./scripts/ci/install_makepkg.sh >/dev/null 2>&1
|
||||
./scripts/ci/aur_bump.sh
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
|
||||
SSH_PUB_KEY: ${{ secrets.AUR_SSH_PUB_KEY }}
|
||||
|
|
13
scripts/ci/install_makepkg.sh
Executable file
13
scripts/ci/install_makepkg.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
for i in \
|
||||
"makepkg_6.0.2-3_amd64.deb" \
|
||||
"libalpm13_13.0.2-3_amd64.deb" \
|
||||
"pacman-package-manager_6.0.2-3_amd64.deb"; do
|
||||
wget -O/tmp/$i https://fr.archive.ubuntu.com/ubuntu/pool/universe/p/pacman-package-manager/$i
|
||||
dpkg -i /tmp/$i || true
|
||||
done
|
||||
|
||||
apt -f install -q
|
Loading…
Reference in a new issue