{"id":17693615,"url":"https://github.com/andy5995/gh-action-build-deb","last_synced_at":"2025-04-23T00:48:14.153Z","repository":{"id":225956849,"uuid":"767323209","full_name":"andy5995/gh-action-build-deb","owner":"andy5995","description":"Action that builds a Debian package","archived":false,"fork":false,"pushed_at":"2024-12-12T11:55:07.000Z","size":81,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"trunk","last_synced_at":"2025-04-23T00:48:04.935Z","etag":null,"topics":["actions","debian","debian-packages","docker-image"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andy5995.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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}},"created_at":"2024-03-05T04:45:47.000Z","updated_at":"2025-03-18T11:36:22.000Z","dependencies_parsed_at":"2024-10-24T16:46:14.632Z","dependency_job_id":"de0662e8-b8e2-46bd-a769-449d02793d6e","html_url":"https://github.com/andy5995/gh-action-build-deb","commit_stats":null,"previous_names":["andy5995/gh-action-build-deb"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fgh-action-build-deb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fgh-action-build-deb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fgh-action-build-deb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fgh-action-build-deb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andy5995","download_url":"https://codeload.github.com/andy5995/gh-action-build-deb/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250348877,"owners_count":21415910,"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","debian","debian-packages","docker-image"],"created_at":"2024-10-24T13:45:41.609Z","updated_at":"2025-04-23T00:48:14.136Z","avatar_url":"https://github.com/andy5995.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action to build a Debian package\n\nThis is a [GitHub Action](https://github.com/features/actions) that will build\na [Debian package](https://en.wikipedia.org/wiki/Deb_%28file_format%29)\n(`.deb` file) for the latest Debian release. Multiple architectures are\nsupported.\n\nThis is a fork of\n[legoktm/gh-action-build-deb](https://github.com/legoktm/gh-action-build-deb).\n\nThis Action will build both a source package and then a binary package and\nplace them in a `output/` directory.\n\nThe 'debian' directory containing the files required to create a Debian\npackage must be in the source root directory (in the example below, it's\ncopied to the source root directory before the action is run).\n\n## Example\n\u003c!-- Don't forget to check the version after the action when copying and pasting --\u003e\n```yaml\non: [push]\n\njobs:\n  build-deb:\n    strategy:\n      matrix:\n        codename:\n          - trixie\n          - bookworm\n        platform:\n          - amd64\n          - arm64\n          - 386\n\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v4\n\n    - name: Copy debian directory\n      run: cp -a packaging/debian .\n\n    - uses: andy5995/gh-action-build-deb@v1\n      with:\n        args: |\n          --no-sign\n          --compression=xz\n        codename: ${{ matrix.codename }}\n        platform: ${{ matrix.platform }}\n\n    - name: Create sha256sum\n      run: |\n        DEB_FILENAME=$(basename `find output/*deb`)\n        echo \"DEB_FILENAME=$DEB_FILENAME\" \u003e\u003e $GITHUB_ENV\n        cd output\n        sha256sum \"$DEB_FILENAME\" \u003e \"../$DEB_FILENAME.sha256sum\"\n\n    - name: Upload Artifacts\n      uses: actions/upload-artifact@v4\n      with:\n        name: ${{ env.DEB_FILENAME }}\n        path: |\n          output/*.deb\n          *deb.sha256sum\n        if-no-files-found: error\n```\n\n## Supported Architectures\n\n    386\n    amd64\n    riscv64 (using 'trixie' only)\n    arm64\n    arm/v7\n    ppc64le\n\n## Optional arguments\n\n```\n  sources:\n    description: 'Any extra sources to add to apt'\n    required: false\n    default: ''\n  ppa:\n    description: 'An extra PPA to add to apt (no ppa: prefix)'\n    required: false\n    default: ''\n  args:\n    description: 'Arguments to pass to dpkg-buildpackage'\n    required: false\n  codename:\n    description: 'Debian codename'\n    reqired: false\n    default: 'bookworm'\n  platform:\n    description: 'Target architecture'\n    required: false\n    default: 'amd64'\n```\n\n## Related actions\n\n* [gh-action-auto-dch](https://github.com/legoktm/gh-action-auto-dch) automatically adds a changelog entry based on the git information and distro.\n* [gh-action-dput](https://github.com/legoktm/gh-action-dput) uploads built packages to a PPA or repository.\n\n## License\n\nCopyright © 2020 Kunal Mehta under the GPL, version 3 or any later version.\nOriginally based off of the [nylas/gh-action-build-deb-buster](https://github.com/nylas/gh-action-build-deb-buster)\naction, which is Copyright © 2020 David Baumgold under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy5995%2Fgh-action-build-deb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandy5995%2Fgh-action-build-deb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy5995%2Fgh-action-build-deb/lists"}