Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GitHub Actions to publish AUR package

License

NotificationsYou must be signed in to change notification settings

KSXGitHub/github-actions-deploy-aur

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions to publish AUR package.

Inputs

pkgname

Required AUR package name.

pkgbuild

Required Path to PKGBUILD file. This file is often generated by prior steps.

assets

Optional Newline-separated glob patterns for additional files to be added to the AUR repository.Glob patterns will be expanded by bash when copying the files to the repository.

updpkgsums

Optional Update checksums usingupdpkgsums.

test

Optional Check that PKGBUILD could be built.

test_flags

Optional Command line flags for makepkg to build the package (iftest is enabled). The default flags are--clean --cleanbuild --nodeps.

post_process

Optional A line of commands to execute after processing the package.

commit_username

Required The username to use when creating the new commit.

commit_email

Required The email to use when creating the new commit.

ssh_private_key

Required Your private key with access to AUR package.

commit_message

Optional Commit message to use when creating the new commit.

allow_empty_commits

Optional Allow empty commits, i.e. commits with no change. The default value isfalse.

force_push

Optional Use--force when push to the AUR. The default value isfalse.

ssh_keyscan_types

Optional Comma-separated list of types to use when adding aur.archlinux.org to known hosts.

Example usage

name:aur-publishon:push:tags:      -'*'jobs:aur-publish:runs-on:ubuntu-lateststeps:      -uses:actions/checkout@v2      -name:Generate PKGBUILDrun:bash ./generate-pkgbuild.bash      -name:Publish AUR packageuses:KSXGitHub/github-actions-deploy-aur@<TAG>with:pkgname:my-awesome-packagepkgbuild:./PKGBUILDcommit_username:${{ secrets.AUR_USERNAME }}commit_email:${{ secrets.AUR_EMAIL }}ssh_private_key:${{ secrets.AUR_SSH_PRIVATE_KEY }}commit_message:Update AUR packagessh_keyscan_types:rsa,ecdsa,ed25519

Note: Replace<TAG> in the above code snippet with a tag of this repo.

Tip: To create secrets (such assecrets.AUR_USERNAME,secrets.AUR_EMAIL, andsecrets.AUR_SSH_PRIVATE_KEY above), go to$YOUR_GITHUB_REPO_URL/settings/secrets.Read this for more information.

Tip: This action does not generate PKGBUILD for you, you must generate it yourself (e.g. by using actions before this action).

Real-world applications

sane-fmt has aworkflow that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to updateaur/sane-fmt andaur/sane-fmt-bin.

pretty-exec has aworkflow that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to updateaur/pretty-exec andaur/pretty-exec-bin.

build-fs-tree has aworkflow that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to updateaur/build-fs-tree andaur/build-fs-tree-bin.

strip-ansi-cli has aworkflow that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to updateaur/strip-ansi andaur/strip-ansi-bin.

parallel-disk-usage has aworkflow that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to updateaur/parallel-disk-usage andaur/parallel-disk-usage-bin.

Become a Patron

My Patreon Page.

License

MIT ©Hoàng Văn Khải

Sponsor this project

  •  

Packages

No packages published

Contributors12


[8]ページ先頭

©2009-2025 Movatter.jp