-
-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (50 loc) · 1.74 KB
/
Copy pathdeploy-release.yml
File metadata and controls
59 lines (50 loc) · 1.74 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Deploy release to consumers
on:
repository_dispatch:
types: [deploy]
permissions:
contents: read
jobs:
aur_publish:
name: Publish AUR packages
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout PKGBUILD only
uses: actions/checkout@v7
with:
ref: ${{ github.event.client_payload.tag }}
- name: Update PKGBUILD version
run: |
set -euo pipefail
VERSION="${{ github.event.client_payload.version }}"
sed -i "s/^pkgver=.*/pkgver=$VERSION/" openssh-gui-bin/PKGBUILD
sed -i "s/^pkgrel=.*/pkgrel=1/" openssh-gui-bin/PKGBUILD
- name: Deploy to AUR
uses: ./.github/actions/deploy-aur
with:
pkgname: openssh-gui-bin
pkgbuild: openssh-gui-bin/PKGBUILD
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_username: ${{ github.repository_owner }}
commit_email: ${{ github.repository_owner }}@users.noreply.github.com
commit_message: "Update to ${{ github.event.client_payload.tag }}"
force_push: 'false'
regenerate_srcinfo: 'false'
updpkgsums: 'true'
winget_publish:
name: Update Winget Package
runs-on: ubuntu-slim
needs: aur_publish
timeout-minutes: 10
steps:
- name: Update Winget manifest
uses: vedantmgoyal9/winget-releaser@main
with:
max-versions-to-keep: 5
identifier: frequency403.OpenSSHGUI
fork-user: ${{ github.repository_owner }}
version: ${{ github.event.client_payload.version }}
release-tag: ${{ github.event.client_payload.tag }}
installers-regex: 'Setup\.exe$'
token: ${{ secrets.WINGET_PUBLISH_TOKEN }}