summaryrefslogtreecommitdiff
path: root/.github/workflows/aur.yml
blob: 949bb966e609ee4df09e290e2850b5fe0e68137d (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
---
name: Publish to the AUR
on:
  workflow_dispatch:  # Manual trigger via GitHub UI
jobs:
  publish-aur:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
        with:
          driver: docker    # Use 'docker' instead of 'auto'
      - name: Build AUR Package
        run: |
          docker buildx create --use
          docker buildx build -t "aur-publisher" releases/aur
      - name: Run AUR Publisher
        env:
          AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }}
          AUR_PUBLIC_KEY: ${{ secrets.AUR_PUBLIC_KEY }}
          PKG_REPO_URI: https://github.com/ChausseBenjamin/termpicker
          PKG_NAME: termpicker
          GIT_USER: ChausseBenjamin
        run: |-
          docker run \
            -e AUR_PRIVATE_KEY="$AUR_PRIVATE_KEY" \
            -e AUR_PUBLIC_KEY="$AUR_PUBLIC_KEY" \
            -e PKG_REPO_URI="$PKG_REPO_URI" \
            -e PKG_NAME="$PKG_NAME" \
            -e GIT_USER="$GIT_USER" \
            aur-publisher