{"id":25448133,"url":"https://github.com/giginet/github-action-artifactbundle","last_synced_at":"2025-10-12T05:47:09.627Z","repository":{"id":275392437,"uuid":"925225122","full_name":"giginet/github-action-artifactbundle","owner":"giginet","description":"📦 GitHub Action to create Artifact Bundle","archived":false,"fork":false,"pushed_at":"2025-09-22T20:56:21.000Z","size":6218,"stargazers_count":11,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T14:52:38.404Z","etag":null,"topics":["githubaction","swift"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/giginet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-31T13:26:49.000Z","updated_at":"2025-09-21T23:34:58.000Z","dependencies_parsed_at":"2025-02-25T04:25:54.720Z","dependency_job_id":"6cf0c0aa-6037-4dcb-be6d-4e5f5bf5a200","html_url":"https://github.com/giginet/github-action-artifactbundle","commit_stats":null,"previous_names":["giginet/github-action-artifactbundle"],"tags_count":4,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/giginet/github-action-artifactbundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2Fgithub-action-artifactbundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2Fgithub-action-artifactbundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2Fgithub-action-artifactbundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2Fgithub-action-artifactbundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giginet","download_url":"https://codeload.github.com/giginet/github-action-artifactbundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2Fgithub-action-artifactbundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010329,"owners_count":26084737,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["githubaction","swift"],"created_at":"2025-02-17T19:18:53.651Z","updated_at":"2025-10-12T05:47:09.613Z","avatar_url":"https://github.com/giginet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action Artifact Bundle\n\n[![GitHub Super-Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)\n![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg)\n[![Check dist/](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml/badge.svg)](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml)\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nA GitHub Action to create a archive in Apple\n[Artifact bundle](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0305-swiftpm-binary-target-improvements.md#artifact-bundle)\nformat. It's is useful for distributing binaries built from Swift Package for\nPackage Plugin or using [nest](https://github.com/mtj0928/nest).\n\n## Features\n\n- [x] Create Artifact Bundle from Swift Package\n- [x] Auto checksum calculation\n- [x] Support for multiple architectures\n- [x] Support for universal binary\n- [x] Support for Linux binary\n- [x] Support for package resources\n\n## Usage\n\n\u003e [!NOTE]\n\u003e You can refer to the example in\n\u003e [giginet/github-action-artifactbundle-example](https://github.com/giginet/github-action-artifactbundle-example)\n\nThis plugin collect executables from the repository and compress them into\n`*.artifactbundle.zip`. This plugin just make a bundle, so you need to set up\nthe steps to build Swift Package before this plugin.\n\n```yaml\non:\n  release:\n    types: [published, edited]\nname: Upload Artifact Bundle to Release\nenv:\n  DEVELOPER_DIR: '/Applications/Xcode_16.2.app/Contents/Developer'\njobs:\n  release:\n    runs-on: macos-15\n    steps:\n      - uses: actions/checkout@v4\n      - name: Build Universal Binary\n        run: swift build --disable-sandbox -c release --arch arm64 --arch x86_64\n      - uses: giginet/github-action-artifactbundle@v2\n        id: artifactbundle\n        with:\n          artifact_name: myexecutable\n      - name: Upload Artifact Bundle to Release\n        run: |\n          BODY=\"${{ github.event.release.body }}\"\n          BUNDLE_PATH=\"${{ steps.artifactbundle.outputs.bundle_path }}\"\n          SHA256=\"${{ steps.artifactbundle.outputs.bundle_sha256 }}\"\n          TAG_NAME=\"${{ github.event.release.tag_name }}\"\n          gh release upload \"${TAG_NAME}\" \"${BUNDLE_PATH}\"\n          NEW_BODY=\"$(printf \"%s\\n%s\" \"$BODY\" \"$SHA256\")\"\n          gh release edit \"${TAG_NAME}\" --notes \"${NEW_BODY}\"\n        env:\n          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n\u003e [!NOTE]\n\u003e You need to configure the permission in the GitHub Action settings to\n\u003e upload the artifacts. See Details for the\n\u003e [documentation](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository).\n\n### Inputs\n\n| Required | Key             | Description                       | Default Value                                                 |\n| -------- | --------------- | --------------------------------- | ------------------------------------------------------------- |\n| ✅       | `artifact_name` | Name of the executable to collect |                                                               |\n|          | `version`       | Version of the artifact           | `${{ github.event.release.tag_name \\| ${{ github.ref_name }}` |\n|          | `package_path`  | Path to the package directory     | `./`                                                          |\n|          | `output_path`   | Path to output directory for artifact bundle | `./.artifacts`                                      |\n|         | `configuration` | Build configuration (debug/release)          | `release`                                           |\n\n### Action Outputs\n\n| Key               | Description                                  | Value                                                 |\n| ----------------- | -------------------------------------------- | ----------------------------------------------------- |\n| `bundle_path`     | Absolute pass to the created artifact bundle | `/path/to/.artifacts/myexecutable.artifactbundle.zip` |\n| `bundle_sha256`   | SHA256 hash of the bundle                    | `6ac5405041deec86c371ce71e5f7e56b0c7122f4`            |\n| `bundle_filename` | Filename of the bundle                       | `myexecutable.artifactbundle.zip`                     |\n\n## Build Linux Binary\n\nThe Swift compiler supports cross-compilation. If you want to make a Linux\nbinary, you can refer the following steps.\n\n```yaml\njobs:\n  release:\n    steps:\n      - name: Install Linux SDK\n        run:\n          swift sdk install\n          https://download.swift.org/swift-6.0.3-release/static-sdk/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz\n      - name: 'Build for Linux(x86_64)'\n        run: swift build --swift-sdk x86_64-swift-linux-musl\n      - name: 'Build for Linux(arm64)'\n        run: swift build --swift-sdk aarch64-swift-linux-musl\n```\n\nSee details for\n[Swift.org - Getting Started with the Static Linux SDK](https://www.swift.org/documentation/articles/static-linux-getting-started.html).\n\nThis action automatically gather the executables for each architecture and\nthey'll be included to a bundle.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiginet%2Fgithub-action-artifactbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiginet%2Fgithub-action-artifactbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiginet%2Fgithub-action-artifactbundle/lists"}