{"id":13721103,"url":"https://github.com/neobrains/space-pipe","last_synced_at":"2025-05-07T13:31:41.499Z","repository":{"id":65088887,"uuid":"568495052","full_name":"neobrains/space-pipe","owner":"neobrains","description":"GitHub Action to push your project to Deta Space.","archived":true,"fork":false,"pushed_at":"2024-02-26T06:24:18.000Z","size":45,"stargazers_count":47,"open_issues_count":2,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-02T16:06:48.131Z","etag":null,"topics":["cicd","deployment","deta","deta-space","github-actions","neobrains"],"latest_commit_sha":null,"homepage":"","language":null,"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/neobrains.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-20T17:56:28.000Z","updated_at":"2024-10-28T00:51:44.000Z","dependencies_parsed_at":"2024-01-06T01:03:56.488Z","dependency_job_id":"0f2507d7-2518-44be-a3c9-2e4c555ebd00","html_url":"https://github.com/neobrains/space-pipe","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":0.05405405405405406,"last_synced_commit":"717d7cc98283950cb458af0e7780f8ef6f62b409"},"previous_names":["neobrains/space-pipe","neobrains/space-deployment-github-action"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neobrains%2Fspace-pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neobrains%2Fspace-pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neobrains%2Fspace-pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neobrains%2Fspace-pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neobrains","download_url":"https://codeload.github.com/neobrains/space-pipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224487299,"owners_count":17319557,"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":["cicd","deployment","deta","deta-space","github-actions","neobrains"],"created_at":"2024-08-03T01:01:12.490Z","updated_at":"2024-11-14T10:31:05.820Z","avatar_url":"https://github.com/neobrains.png","language":null,"funding_links":[],"categories":["Misc's"],"sub_categories":["Github Action"],"readme":"# Space Pipe\nA simple GitHub Action to deploy your projects to [Deta Space](https://alpha.deta.space/) and let their [builder](https://alpha.deta.space/docs/en/basics/projects#projects-in-builder) build your apps.\n\nThanks for the help ✨ [Sponge](https://github.com/rohanshiva).\n\n## Usage\n- Push your changes to create a new revision of your app.\n- Release your latest revision. Each release can either be unlisted, where only people with the link can install it, or listed, which makes a release available for anyone to discover and install with [Deta Discovery](https://alpha.deta.space/discovery).\n\n## Inputs\n- `access_token` : Used for Space CLI authentication. From [Deta Space Dashboard](https://alpha.deta.space), open the *teletype* (command bar) and click on *Settings*. In the settings modal, click on *Generate Token* to generate an access token and copy the resulting *access token*.\n\n- `project_id` : Used for getting the *.space folder* for pushing your code to Deta Space. To get your project id go to the [Builder](https://alpha.deta.space/builder) and in your project’s *Develop* tab, open the *teletype* (command bar) and copy the *Project ID*.\n\n- `project_directory` : (Optional) The directory where your project is located. The default value is the root directory.\n\n- `space_push` : (Optional) If true, pushes your changes to Space and creates a new revision. The default value is false.\n\n- `experimental` : (Optional) If true, uses Deta Space's experimental runner. The default value is false.\n\n- `space_release` : (Optional) If true, the latest revision will be released to Space. The default value is false.\n\n- `list_on_discovery` : (Optional) If true, the latest revision will be listed on Space Discovery. The default value is false.\n\n- `release_version` : (Optional) Version for the release. If not provided, Deta Space will generate a version by default.\n\n\u003cbr\u003e\n\n⚠️ Neither **list_on_discovery** nor **release_version** can be used without **space_release** set to \"true\" as both of them are optional args of **space_release**.\n\n⚠️ Use [GitHub Actions secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) to store your inputs.\n\n⚠️ Make sure to add your 📝[Spacefile](https://alpha.deta.space/docs/en/reference/spacefile) in your repository. It contains the configuration of your project and is used by Deta Space to understand what your project looks like and how to run it.\n\n## Example workflow\n```\nname: Push to Space\non: push\n\njobs:\n  push-to-space:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - name: Deta Space Deployment Github Action\n        uses: neobrains/space-pipe@v0.5\n        with:\n          access_token: ${{ secrets.ACCESS_TOKEN }}\n          project_id: ${{ secrets.PROJECT_ID }}\n          space_push: true\n          list_on_discovery: true\n```\n\nHere [access_token](#access_token) and [project_id](#project_id) are stored as **ACCESS_TOKEN** and **PROJECT_ID** in GitHub Actions secrets. After creating a new revision with *space_push*, the latest revision will be listed on Space Discovery with **list_on_discovery**.\n\n### Some workflow examples to manage your deployments:\n- A single workflow can be created with [jobs](https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow#defining-prerequisite-jobs) to do space push, release of that revision and list that on Space Discovery with conditions to run a subsequent job if the previous one was successful.\n- A workflow with *space_push* can be set up to run on [each push to the workflow's repository](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push). Separate workflows for *space_release* and *list_on_discovery* can be set up to run on [workflow_dispatch](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch) to be executed when needed.\n\n- Configure your workflow to do *space_push* on each push to devlopment branch, *space_release* on each push to test branch and *list_on_discovery* on each push to main or master branch.\n\n## License\nThis GitHub Action and associated documentation in this project are released under the [MIT License](https://github.com/neobrains/space-deployment-github-action/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneobrains%2Fspace-pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneobrains%2Fspace-pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneobrains%2Fspace-pipe/lists"}