summaryrefslogtreecommitdiff
path: root/.github/workflows/AUR_publish.yml
blob: 0d9efd9fd0eb7d067482ce65dae578abd68e4afd (plain)
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
name: Package for the AUR

on:
  release:
    types: [published]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:
jobs:
  aur-publish-stable:
    runs-on: ubuntu-latest
    steps:
      - name: Check out sources
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Publish AUR Stable package
        uses: ulises-jeremias/github-actions-aur-publish@v1
        with:
          pkgname: swayfx
          pkgbuild: ./build-scripts/aur/PKGBUILD
          assets: |
            ./build-scripts/aur/50-systemd-user.conf
            ./build-scripts/aur/sway.install
          commit_username: ${{ secrets.AUR_USERNAME }}
          commit_email: ${{ secrets.AUR_EMAIL }}
          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
          commit_message: Update AUR package
          ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
          update_pkgver: false

  aur-publish-git:
    runs-on: ubuntu-latest
    steps:
      - name: Check out sources
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Publish AUR -git package
        uses: ulises-jeremias/github-actions-aur-publish@v1
        with:
          pkgname: swayfx-git
          pkgbuild: ./build-scripts/aur-git/PKGBUILD
          assets: |
            ./build-scripts/aur-git/50-systemd-user.conf
            ./build-scripts/aur-git/sway.install
          commit_username: ${{ secrets.AUR_USERNAME }}
          commit_email: ${{ secrets.AUR_EMAIL }}
          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
          commit_message: Update AUR package
          ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
          update_pkgver: false