mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 11:49:14 +00:00
fix aur gh action
This commit is contained in:
27
.github/workflows/aur-release.yml
vendored
27
.github/workflows/aur-release.yml
vendored
@@ -3,37 +3,22 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
jobs:
|
jobs:
|
||||||
aur_patch:
|
aur_publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- shell: bash
|
- name: Prepare AUR package
|
||||||
env:
|
env:
|
||||||
RELEASE_TAG: ${{ github.ref }}
|
RELEASE_TAG: ${{ github.ref }}
|
||||||
run: |
|
run: |
|
||||||
version=$(echo ${RELEASE_TAG} | sed 's#^.*v##g')
|
version=$(echo ${RELEASE_TAG} | sed 's#^.*v##g')
|
||||||
sed "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD > PKGBUILD
|
sed -i "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD
|
||||||
- name: Upload PKGBUILD
|
cat packages/arch-dotdrop/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
|
- name: Publish to aur
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v2
|
uses: KSXGitHub/github-actions-deploy-aur@v2.0.2
|
||||||
with:
|
with:
|
||||||
pkgname: dotdrop
|
pkgname: dotdrop
|
||||||
pkgbuild: ./PKGBUILD
|
pkgbuild: ./packages/arch-dotdrop/PKGBUILD
|
||||||
commit_username: ${{ secrets.AUR_USERNAME }}
|
commit_username: ${{ secrets.AUR_USERNAME }}
|
||||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user