Skip to content

Commit 2e311dc

Browse files
authored
Fix AUR publishing (GameTec-live#176)
1 parent 6d737a5 commit 2e311dc

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

.github/workflows/publish-app.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,25 @@
193193
- uses: webfactory/[email protected]
194194
with:
195195
ssh-private-key: ${{ secrets.AUR_KEY }}
196-
196+
- name: configure ssh
197+
run: |
198+
mkdir -p ~/.ssh
199+
ssh-keyscan -t rsa aur.archlinux.org >> ~/.ssh/known_hosts
200+
echo -e "Host aur.archlinux.org\n\tStrictHostKeyChecking no\n\tUser aur" >> ~/.ssh/config
197201
- name: configure git
198202
run: |
199203
git config --global user.email "github-actions[bot]@users.noreply.github.com"
200204
git config --global user.name "github-actions[bot]"
201-
- run: mv release-PKGBUILD PKGBUILD
205+
- run: cp ../release-PKGBUILD PKGBUILD
206+
working-directory: "./chameleonultragui/"
207+
- run: cp ../release-.SRCINFO .SRCINFO
208+
working-directory: "./chameleonultragui/"
209+
- name: Update pakagerel in PKGBUILD
210+
run: sed -i "s/pkgrel=.*/pkgrel=${{ github.run_number }}/" PKGBUILD
211+
working-directory: "./chameleonultragui/"
212+
- name: Update pkgrel in .SRCINFO
213+
run: sed -i "s/pkgrel = .*/pkgrel = ${{ github.run_number }}/" .SRCINFO
202214
working-directory: "./chameleonultragui/"
203-
- name: Arch Linux update package
204-
uses: hapakaien/[email protected]
205-
with:
206-
path: ./chameleonultragui/PKGBUILD
207-
pkgrel: ${{ github.run_number }}
208-
srcinfo: true
209215
- name: clone aur
210216
run: git -c init.defaultbranch=master clone ssh://[email protected]/chameleonultragui.git
211217
working-directory: "./chameleonultragui/"

release-.SRCINFO

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pkgbase = chameleonultragui
2+
pkgdesc = PKGBUILD for the Chameleon Ultra GUI
3+
pkgver = 0.0.1
4+
pkgrel = 1
5+
url = https://github.com/GameTec-live/ChameleonUltraGUI
6+
arch = x86_64
7+
makedepends = flutter
8+
makedepends = clang
9+
makedepends = cmake
10+
makedepends = ninja
11+
makedepends = pkgconf
12+
makedepends = xz
13+
depends = gtk3
14+
depends = zenity
15+
source = git+https://github.com/GameTec-live/ChameleonUltraGUI.git#branch=main
16+
sha256sums = SKIP
17+
18+
pkgname = chameleonultragui

0 commit comments

Comments
 (0)