Prerelease 0.2.3.2
#50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------------------------------------------------- | |
| # Workflow File : pub-AUR-chsrc-git.yml | |
| # File Authors : Terrasse <[email protected]> | |
| # Contributors : Nul None <[email protected]> | |
| # | | |
| # Created On : <2024-08-29> | |
| # Last Modified : <2025-06-19> | |
| # | |
| # 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 | |
| paths: | |
| - "src/**" | |
| - "lib/**" | |
| 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/[email protected] | |
| 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 }}" |