Skip to content

Publish to AUR

Publish to AUR #10

Workflow file for this run

name: Publish to AUR
on:
workflow_dispatch
# release:
# types: [published]
jobs:
aur-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get version
id: get_version
run: |
VERSION=$(grep 'version:' pubspec.yaml | sed 's/version: //')
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Update PKGBUILD version
run: |
sed -i "s/pkgver=.*/pkgver=${{ steps.get_version.outputs.VERSION }}/" pkg/PKGBUILD
- name: Publish AUR package
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
with:
pkgname: mirarr-bin
pkgbuild: ./pkg/PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "Update to version ${{ steps.get_version.outputs.VERSION }}"
ssh_keyscan_types: rsa,ecdsa,ed25519