-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.27 KB
/
test-makepkg-ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
on:
push:
name: Test makepkg on ubuntu
jobs:
hello:
strategy:
fail-fast: false
matrix:
include:
- bin: ""
- bin: "-bin"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
VERSION="0.5.1"
sudo apt-get update
sudo apt-get install -y asciidoc
git clone https://github.com/archlinux/arch-install-scripts.git
cd arch-install-scripts
sudo make install
cd ..
cargo xtask packaging $VERSION aur${{matrix.bin}}
mkdir -p ~/.ssh
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/aur
chmod 600 ~/.ssh/aur
echo "Host aur.archlinux.org" >> ~/.ssh/config
echo " IdentityFile ~/.ssh/aur" >> ~/.ssh/config
echo " User aur" >> ~/.ssh/config
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts
git clone ssh://[email protected]/fixit${{ matrix.bin }}.git aur
cp PKGBUILD .SRCINFO aur/
cd aur
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add PKGBUILD .SRCINFO
git commit -m "chore: release $VERSION"