{"id":13595682,"url":"https://github.com/KSXGitHub/github-actions-deploy-aur","last_synced_at":"2025-04-09T13:33:06.159Z","repository":{"id":41040775,"uuid":"261159912","full_name":"KSXGitHub/github-actions-deploy-aur","owner":"KSXGitHub","description":"GitHub Actions to publish AUR package","archived":false,"fork":false,"pushed_at":"2024-09-07T20:26:28.000Z","size":72,"stargazers_count":109,"open_issues_count":6,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T11:13:30.658Z","etag":null,"topics":["actions","archlinux","aur","ci","delivery","publishing"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/publish-aur-package","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KSXGitHub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":"khai96_","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-05-04T11:43:12.000Z","updated_at":"2024-10-26T13:28:12.000Z","dependencies_parsed_at":"2024-01-16T22:20:03.414Z","dependency_job_id":"567e6f9f-e9f3-4229-9e4c-d7386045a78d","html_url":"https://github.com/KSXGitHub/github-actions-deploy-aur","commit_stats":{"total_commits":45,"total_committers":6,"mean_commits":7.5,"dds":0.2222222222222222,"last_synced_commit":"065b6056b25bdd43830d5a3f01899d0ff7169819"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fgithub-actions-deploy-aur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fgithub-actions-deploy-aur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fgithub-actions-deploy-aur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KSXGitHub%2Fgithub-actions-deploy-aur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KSXGitHub","download_url":"https://codeload.github.com/KSXGitHub/github-actions-deploy-aur/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223394695,"owners_count":17138598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","archlinux","aur","ci","delivery","publishing"],"created_at":"2024-08-01T16:01:55.456Z","updated_at":"2024-11-06T18:31:29.174Z","avatar_url":"https://github.com/KSXGitHub.png","language":"Shell","readme":"# Publish AUR package\n\nGitHub Actions to publish AUR package.\n\n## Inputs\n\n### `pkgname`\n\n**Required** AUR package name.\n\n### `pkgbuild`\n\n**Required** Path to PKGBUILD file. This file is often generated by prior steps.\n\n### `assets`\n\n**Optional** Newline-separated glob patterns for additional files to be added to the AUR repository.\nGlob patterns will be expanded by bash when copying the files to the repository.\n\n### `updpkgsums`\n\n**Optional** Update checksums using `updpkgsums`.\n\n### `test`\n\n**Optional** Check that PKGBUILD could be built.\n\n### `test_flags`\n\n**Optional** Command line flags for makepkg to build the package (if `test` is enabled). The default flags are `--clean --cleanbuild --nodeps`.\n\n### `post_process`\n\n**Optional** A line of commands to execute after processing the package.\n\n### `commit_username`\n\n**Required** The username to use when creating the new commit.\n\n### `commit_email`\n\n**Required** The email to use when creating the new commit.\n\n### `ssh_private_key`\n\n**Required** Your private key with access to AUR package.\n\n### `commit_message`\n\n**Optional** Commit message to use when creating the new commit.\n\n### `allow_empty_commits`\n\n**Optional** Allow empty commits, i.e. commits with no change. The default value is `false`.\n\n### `force_push`\n\n**Optional** Use `--force` when push to the AUR. The default value is `false`.\n\n### `ssh_keyscan_types`\n\n**Optional** Comma-separated list of types to use when adding aur.archlinux.org to known hosts.\n\n## Example usage\n\n```yaml\nname: aur-publish\n\non:\n  push:\n    tags:\n      - '*'\n\njobs:\n  aur-publish:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Generate PKGBUILD\n        run: bash ./generate-pkgbuild.bash\n\n      - name: Publish AUR package\n        uses: KSXGitHub/github-actions-deploy-aur@\u003cTAG\u003e\n        with:\n          pkgname: my-awesome-package\n          pkgbuild: ./PKGBUILD\n          commit_username: ${{ secrets.AUR_USERNAME }}\n          commit_email: ${{ secrets.AUR_EMAIL }}\n          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}\n          commit_message: Update AUR package\n          ssh_keyscan_types: rsa,ecdsa,ed25519\n```\n\n**Note:** Replace `\u003cTAG\u003e` in the above code snippet with a tag of this repo.\n\n**Tip:** To create secrets (such as `secrets.AUR_USERNAME`, `secrets.AUR_EMAIL`, and `secrets.AUR_SSH_PRIVATE_KEY` above), go to `$YOUR_GITHUB_REPO_URL/settings/secrets`. [Read this for more information](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets).\n\n**Tip:** This action does not generate PKGBUILD for you, you must generate it yourself (e.g. by using actions before this action).\n\n## Real-world applications\n\n[sane-fmt](https://github.com/KSXGitHub/sane-fmt) has a [workflow](https://github.com/KSXGitHub/sane-fmt/blob/c07ce4f09c0b8dfa902d28753ebb3800268183f5/.github/workflows/deploy.yaml) that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to update [aur/sane-fmt](https://aur.archlinux.org/packages/sane-fmt) and [aur/sane-fmt-bin](https://aur.archlinux.org/packages/sane-fmt-bin).\n\n[pretty-exec](https://github.com/KSXGitHub/pretty-exec) has a [workflow](https://github.com/KSXGitHub/pretty-exec/blob/67473cd85f6aa278367e30fce9e41b4e54e4cb82/.github/workflows/deploy.yaml) that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to update [aur/pretty-exec](https://aur.archlinux.org/packages/pretty-exec/) and [aur/pretty-exec-bin](https://aur.archlinux.org/packages/pretty-exec-bin/).\n\n[build-fs-tree](https://github.com/KSXGitHub/build-fs-tree) has a [workflow](https://github.com/KSXGitHub/build-fs-tree/blob/24924d99ae5cd82f00ea62fe8abc1a187bea7a0b/.github/workflows/deploy.yaml) that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to update [aur/build-fs-tree](https://aur.archlinux.org/packages/build-fs-tree/) and [aur/build-fs-tree-bin](https://aur.archlinux.org/packages/build-fs-tree-bin/).\n\n[strip-ansi-cli](https://github.com/KSXGitHub/strip-ansi-cli) has a [workflow](https://github.com/KSXGitHub/strip-ansi-cli/blob/f3de1cf4997bbc2efbf137f77325f12640c2e145/.github/workflows/deploy.yaml) that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to update [aur/strip-ansi](https://aur.archlinux.org/packages/strip-ansi/) and [aur/strip-ansi-bin](https://aur.archlinux.org/packages/strip-ansi-bin/).\n\n[parallel-disk-usage](https://github.com/KSXGitHub/parallel-disk-usage) has a [workflow](https://github.com/KSXGitHub/parallel-disk-usage/blob/a7fc0937a64d23ae848e44f7ecbf02aec64831e4/.github/workflows/deploy.yaml) that builds and uploads executables to GitHub Release then generates PKGBUILD files for and use this very action to update [aur/parallel-disk-usage](https://aur.archlinux.org/packages/parallel-disk-usage/) and [aur/parallel-disk-usage-bin](https://aur.archlinux.org/packages/parallel-disk-usage-bin/).\n\n## Become a Patron\n\n[My Patreon Page](https://patreon.com/khai96_).\n\n## License\n\n[MIT](https://git.io/JfWEM) © [Hoàng Văn Khải](https://github.com/KSXGitHub/)\n","funding_links":["https://patreon.com/khai96_"],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKSXGitHub%2Fgithub-actions-deploy-aur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKSXGitHub%2Fgithub-actions-deploy-aur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKSXGitHub%2Fgithub-actions-deploy-aur/lists"}