mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-10 06:03:24 +08:00
Rename workflows and add headers
This commit is contained in:
35
.github/workflows/pub-AUR-chsrc-git.yml
vendored
Normal file
35
.github/workflows/pub-AUR-chsrc-git.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
# ---------------------------------------------------------------
|
||||
# Workflow File : pub-AUR-chsrc-git.yml
|
||||
# File Authors : Terrasse <terrasse@qq.com>
|
||||
# Contributors : Nul None <nul@none.org>
|
||||
# |
|
||||
# Created On : <2024-08-29>
|
||||
# Last Modified : <2025-03-18>
|
||||
#
|
||||
# Publish package 'chsrc-git' to AUR when branch 'main' is updated.
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
name: Publish 'chsrc-git' to AUR
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "main" ] # chsrc-git syncs with main
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Fetch PKGBUILD
|
||||
run: |
|
||||
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h\=chsrc-git -O ./PKGBUILD
|
||||
- name: Publish to AUR
|
||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.1
|
||||
with:
|
||||
pkgname: chsrc-git
|
||||
pkgbuild: ./PKGBUILD
|
||||
test: true # Check that PKGBUILD could be built, and update pkgver
|
||||
commit_username: ${{ secrets.AUR_USERNAME }}
|
||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
commit_message: "github-action-auto-publish\n${{ github.sha }}"
|
Reference in New Issue
Block a user