name: aur-release

on:
  push:
    tags:
      - "*" # Run on any tag

jobs:
  aur-publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Publish AUR package
        uses: anas-elgarhy/aur-release-action@v4.1
        with:
          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          pkgbuild_path: archpackage/PKGBUILD # Use this if the PKGBUILD file is not in the root directory
          git_username: anas-elgarhy # Use this if you want to change the git username (recommended)
          git_email: anas.elgarhy.dev@gmail.com # Use this if you want to change the git email (recommended)
          commit_message: UpUp Update %FILENAME% to %VERSION% yoo # Use this if you want to change the commit message
          try_build_and_install: false
          update_pkgbuild: false
