Skip to content

Commit 68c9c89

Browse files
committed
fix(release): automate PKGBUILD maintenance
Extracted `archlinux-downgrade/aur-publish-action` to handle things.
1 parent d42563d commit 68c9c89

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,24 @@ jobs:
3737
env:
3838
FORCE_COLOR: 1
3939
GITHUB_TOKEN: ${{ github.token }}
40+
41+
outputs:
42+
published: ${{ steps.release.outputs.new_release_published }}
43+
version: ${{ steps.release.outputs.new_release_version}}
44+
45+
pkgbuild:
46+
needs: [release]
47+
if: ${{ needs.release.outputs.published == 'true' }}
48+
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- uses: archlinux-downgrade/aur-publish-action@pb/first
53+
env:
54+
GIT_COMMIT_EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
55+
GIT_COMMIT_USERNAME: "${{ github.actor }}"
56+
PKGNAME: downgrade
57+
PKGVER: ${{ needs.release.outputs.version }}
58+
PKGREL: 1 # always reset
59+
PUSH: ${{ github.ref_name == 'main' && '1' || '0' }}
60+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)