{"id":15517331,"url":"https://github.com/skx/github-action-build","last_synced_at":"2025-04-23T04:27:06.103Z","repository":{"id":65161789,"uuid":"208327485","full_name":"skx/github-action-build","owner":"skx","description":"Build a project, creating artifacts","archived":false,"fork":false,"pushed_at":"2020-07-17T11:55:49.000Z","size":8,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T01:49:23.692Z","etag":null,"topics":["build","github","github-action"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"skx","custom":"https://steve.fi/donate/"}},"created_at":"2019-09-13T18:53:23.000Z","updated_at":"2024-10-09T21:47:16.000Z","dependencies_parsed_at":"2023-01-04T12:39:01.008Z","dependency_job_id":null,"html_url":"https://github.com/skx/github-action-build","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"ad7ec19d2815406c489a14824f8b43a65d90b902"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fgithub-action-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fgithub-action-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fgithub-action-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fgithub-action-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skx","download_url":"https://codeload.github.com/skx/github-action-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250369219,"owners_count":21419203,"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":["build","github","github-action"],"created_at":"2024-10-02T10:12:36.615Z","updated_at":"2025-04-23T04:27:06.079Z","avatar_url":"https://github.com/skx.png","language":"Shell","readme":"# GitHub Action for building a project\n\nThis repository contains a simple GitHub Action implementation, which allows you to build your project, in a repository-specific fashion.\n\nThe expectation is that you would create an action-based workflow:\n\n* Checkout the code.\n* Run the tests.\n* Run the build, generating your artifacts.\n* Upload the artifacts.\n  * Perhaps using my [github-action-publish-binaries](https://github.com/skx/github-action-publish-binaries/) action.\n\n\n## Enabling the action\n\nThere are two steps required to use this action:\n\n* Enable the action inside your repository.\n  * This might mean creating a file `.github/workflows/release.yml` which is where the action is invoked for release-steps, for example.\n* Add your project-specific `.github/build` script.\n  * This is the script which will actually carry out your build-steps.\n    * A C-project might just run `make`.\n    * A golang-based project might run `go build .` multiple times for different architectures.\n\n\n## Sample Configuration\n\nThis configuration runs the script `.github/build` every time a release is made of your project, and is defined in the file `.github/workflows/release.yml`:\n\n```yml\non:\n  release:\n    types: [created]\nname: Handle Release\njobs:\n  generate:\n    name: Create release-artifacts\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@master\n    - name: Generate\n      uses: skx/github-action-build@master\n      with:\n        builder: .github/build\n```\n\nWe assume that the `.github/build` script generated a series of binaries, and these can be acccessed by later steps in your workflow.  For example you might use my uploading-action:\n\n* [https://github.com/skx/github-action-publish-binaries](https://github.com/skx/github-action-publish-binaries)\n\nOf course you can specify a different script name, via the `builder` argument in your workflow file.\n","funding_links":["https://github.com/sponsors/skx","https://steve.fi/donate/"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskx%2Fgithub-action-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskx%2Fgithub-action-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskx%2Fgithub-action-build/lists"}