{"id":13763347,"url":"https://github.com/PriNova/MojoPkgWorkflow","last_synced_at":"2025-05-10T16:32:26.994Z","repository":{"id":198073510,"uuid":"699938285","full_name":"PriNova/MojoPkgWorkflow","owner":"PriNova","description":"This Repository shows how to use a simple GitHub Action script for compiling a mojo directory into a package.","archived":false,"fork":false,"pushed_at":"2023-10-04T09:32:13.000Z","size":13,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T11:10:00.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/PriNova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-03T16:21:33.000Z","updated_at":"2024-06-13T00:48:10.000Z","dependencies_parsed_at":"2024-01-13T03:01:51.247Z","dependency_job_id":"fcf83490-794d-4dce-a1cf-aaadc600cb3d","html_url":"https://github.com/PriNova/MojoPkgWorkflow","commit_stats":null,"previous_names":["prinova/mojopkgworkflow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriNova%2FMojoPkgWorkflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriNova%2FMojoPkgWorkflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriNova%2FMojoPkgWorkflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriNova%2FMojoPkgWorkflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PriNova","download_url":"https://codeload.github.com/PriNova/MojoPkgWorkflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253445799,"owners_count":21909862,"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":[],"created_at":"2024-08-03T15:00:43.096Z","updated_at":"2025-05-10T16:32:26.742Z","avatar_url":"https://github.com/PriNova.png","language":null,"funding_links":[],"categories":["🛠️ Development Tools\u003ca id='development-tools'\u003e\u003c/a\u003e"],"sub_categories":["Advent of Code 2023"],"readme":"\n## Packaging 📦 Mojo 🔥 via GitHub Action Script\n\n\nThis Repository shows how to use a simple GitHub Action script for compiling a mojo directory into a package 📦.\n\nYou can find the action script here --\u003e [Action Script](./.github/workflows/mojopkgscript.yaml).\n\nTo use this action script in your own workflow be sure to set your own GitHub secret for the Mojo API key. How to set a GitHub secret can be found [here](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions). The variable used in the Action script for your API is 'MODULAR_API'. Be sure to use the same name or change the variable name in the script.\n\n* Set the package name in the `PACKAGE_NAME` environment variable.\n* Set your path of the directory to be packaged in the `MOJO_DIR` environment variable.\n\nEverytime you push to the repository the action script will compile the mojo directory into a package and upload it as an artifact in the GitHub workflow. From there users can download the package and use it in hteir own code base. You can modify this script with additional actions for release deploys on the GitHub Release page.\n\nThe `testpkg.mojo` file is a simple mojo that uses the compiled package to call a function.\n\nYou can read more about packaging at the Modular documentation page found [here](https://docs.modular.com/mojo/manual/get-started/packages.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPriNova%2FMojoPkgWorkflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPriNova%2FMojoPkgWorkflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPriNova%2FMojoPkgWorkflow/lists"}