-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (49 loc) · 1.43 KB
/
cd.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
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
workflow_dispatch:
inputs:
aur_pkgrel:
description: 'Release version for AUR package'
type: string
required: false
default: '1'
release:
types: [created]
env:
BINNAME: vscode-recent
LIBNAME: librofi_vscode_mode.so
jobs:
aur:
name: AUR
runs-on: ubuntu-latest
if: github.repository == 'fuljo/rofi-vscode-mode'
env:
PKGREL: ${{ github.event.inputs.aur_pkgrel || '1' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Generate package metadata
run: cargo metadata --no-deps --format-version 1 > metadata.json
- name: Generate PKGBUILD
run: >
ci/generate_pkgbuild.py
--template ci/PKGBUILD.in
--package-release $PKGREL
--metadata metadata.json
--out-dir .
- run: cat PKGBUILD
- name: Publish PKGBUILD
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
with:
pkgname: rofi-vscode-mode
pkgbuild: PKGBUILD
updpkgsums: true
test: true
test_flags: --clean --cleanbuild --syncdeps --install --noconfirm
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}