1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 21:23:02 +00:00
Files
dotdrop/.github/workflows/aur-release.yml
2020-10-25 22:02:30 +01:00

41 lines
1.1 KiB
YAML

name: Release to aur
on:
release:
types: [created]
jobs:
aur_patch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- shell: bash
env:
RELEASE_TAG: ${{ github.ref }}
run: |
version=$(echo ${RELEASE_TAG} | sed 's#^.*v##g')
sed "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD > PKGBUILD
- name: Upload PKGBUILD
uses: actions/upload-artifact@v2
with:
name: PKGBUILD
path: ./PKGBUILD
retention-days: 1
aur_upload:
needs: aur_patch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download PKGBUILD
uses: actions/download-artifact@v2.0
with:
name: PKGBUILD
path: ./PKGBUILD
- name: Publish to aur
uses: KSXGitHub/github-actions-deploy-aur@v2
with:
pkgname: dotdrop
pkgbuild: ./PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "bump version"