Skip to content

Commit cf7a8d6

Browse files
committed
Add staging workflow to automate AUR deployments and update PKGBUILD
1 parent 661bd27 commit cf7a8d6

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/staging.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: staging.yml
2+
on:
3+
push:
4+
branches:
5+
- 'development'
6+
paths:
7+
- 'PKGBUILD'
8+
concurrency:
9+
group: staging-${{ github.ref }}
10+
cancel-in-progress: true
11+
jobs:
12+
deploy-aur:
13+
- name: Deploy to AUR
14+
uses: ./.github/actions/deploy-aur
15+
with:
16+
pkgname: openssh-gui-git
17+
pkgbuild: openssh-gui-git/PKGBUILD
18+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
19+
commit_username: ${{ github.repository_owner }}
20+
commit_email: ${{ github.repository_owner }}@users.noreply.github.com
21+
commit_message: "Updated PKGBUILD"
22+
force_push: 'true'
23+
regenerate_srcinfo: 'true'

openssh-gui-git/PKGBUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ conflicts=('openssh-gui' 'openssh-gui-bin' 'openssh-gui-nightly')
1717
source=("git+${url}.git#branch=development")
1818
sha256sums=('SKIP')
1919

20+
prepare() {
21+
cd "${srcdir}/${_pkgname}"
22+
dotnet restore OpenSSH_GUI/OpenSSH_GUI.csproj
23+
}
24+
2025
pkgver() {
2126
cd "${srcdir}/${_pkgname}"
2227

0 commit comments

Comments
 (0)