-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 901 Bytes
/
release.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
name: Release
on:
push:
branches:
- master
paths:
- ".SRCINFO"
- "PKGBUILD"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Pushes to AUR
run: |
mkdir -p $HOME/.ssh/
cat <<EOF > $HOME/.ssh/id_rsa
${{ secrets.AUR_DEPLOY_KEY }}
EOF
chmod 600 $HOME/.ssh/id_rsa
touch $HOME/.ssh/known_hosts
ssh-keyscan -t rsa aur.archlinux.org >> $HOME/.ssh/known_hosts
git config --global user.email "n@sunng.info"
git config --global user.name "Ning Sun"
git remote add aur ssh://aur@aur.archlinux.org/greptimedb-bin.git
git checkout aur-master
git cherry-pick master
git push origin aur-master
git push aur aur-master:master