-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (35 loc) · 1.07 KB
/
publish.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
name: "Publish pipeline"
on:
push:
workflow_dispatch:
release:
types: [published]
jobs:
aur-publish:
name: Publish to AUR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: astralbijection
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Generate PKGBUILD
run: |
nix build .#caligula-bin-aur
cat result/PKGBUILD
cp result/PKGBUILD .
- name: Publish AUR package
uses: KSXGitHub/github-actions-deploy-aur@v2
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'release' }}
with:
pkgname: caligula-bin
pkgbuild: ./PKGBUILD
commit_username: ifd3f
commit_email: [email protected]
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
commit_message: Update AUR package
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519