diff --git a/.github/workflows/publish_AUR.yml b/.github/workflows/publish_AUR.yml new file mode 100644 index 00000000..a3aa7f12 --- /dev/null +++ b/.github/workflows/publish_AUR.yml @@ -0,0 +1,40 @@ +# This workflow will generate a distribution and upload it to PyPI + +name: aur-publish + +on: + workflow_dispatch: + +jobs: + aur-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: dev + fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install Build Tools + run: | + python -m pip install build wheel pip2pkgbuild + - name: Create PKGBUILD + run: | + pip2pkgbuild ovos-utils -p python -b python-ovos-utils + - name: Commit to dev + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: generate PKGBUILD + branch: dev + - name: Publish AUR package + uses: KSXGitHub/github-actions-deploy-aur@ + with: + pkgname: ovos-utils + pkgbuild: ./PKGBUILD + 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 \ No newline at end of file