1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:44:45 +00:00
Files
dotdrop/.github/workflows/aur-release.yml
2020-10-25 22:39:51 +01:00

26 lines
794 B
YAML

name: Release to aur
on:
release:
types: [created]
jobs:
aur_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare AUR package
env:
RELEASE_TAG: ${{ github.ref }}
run: |
version=$(echo ${RELEASE_TAG} | sed 's#^.*v##g')
sed -i "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD
cat packages/arch-dotdrop/PKGBUILD
- name: Publish to aur
uses: KSXGitHub/github-actions-deploy-aur@v2.0.2
with:
pkgname: dotdrop
pkgbuild: ./packages/arch-dotdrop/PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "bump version"