mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
So far the GHA was called "Ubuntu packaging" but the status reported as "Debian packaging" which was confusing. This change now uses "Ubuntu packaging" in both places. We still keep the filename `deb-packaging.yml` because we're packaging the .deb format, and because it's shorter. Fixes: #13497
1.5 KiB
1.5 KiB
Ubuntu Packaging GitHub Action
You can manually trigger a deb-packaging action on GitHub, e.g. to test changes:
-
push the changes to your fork of keymanapp/keyman: git push myfork HEAD:master
-
make sure you have GHA enabled in the settings of your fork and created an access token on GitHub
-
trigger a build with:
curl --write-out '\n' --request POST \ --header "Accept: application/vnd.github+json" \ --header "Authorization: token $GITHUB_TOKEN" \ --data "{ \"event_type\": \"deb-pr-packaging: master\", \ \"client_payload\": { \ \"buildSha\": \"$(git rev-parse refs/heads/master)\", \ \"branch\": \"master\", \ \"baseBranch\": \"master\", \"baseRef\": \"$(git rev-parse refs/heads/master^)\", \"user\": \"${USER}\", \"isTestBuild\": \"true\"}" \ https://api.github.com/repos/<yourgithubname>/keyman/dispatchesTo trigger a build for PR #1234 in a branch
pr-1234this would look similar to this:curl --write-out '\n' --request POST \ --header "Accept: application/vnd.github+json" \ --header "Authorization: token $GITHUB_TOKEN" \ --data "{ \"event_type\": \"deb-pr-packaging: PR #1234\", \ \"client_payload\": { \ \"buildSha\": \"$(git rev-parse refs/heads/pr-1234)\", \ \"branch\": \"pr-1234\", \ \"baseBranch\": \"master\", \"baseRef\": \"$(git rev-parse refs/heads/master)\", \"user\": \"${USER}\", \"isTestBuild\": \"true\"}" \ https://api.github.com/repos/<yourgithubname>/keyman/dispatches