{"id":19815983,"url":"https://github.com/replicate/setup-replicate","last_synced_at":"2025-02-28T14:54:25.939Z","repository":{"id":212501562,"uuid":"731646552","full_name":"replicate/setup-replicate","owner":"replicate","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-14T14:58:12.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T18:15:46.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replicate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-12-14T14:49:03.000Z","updated_at":"2024-08-16T17:19:23.000Z","dependencies_parsed_at":"2023-12-14T16:30:43.739Z","dependency_job_id":null,"html_url":"https://github.com/replicate/setup-replicate","commit_stats":null,"previous_names":["replicate/setup-replicate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fsetup-replicate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fsetup-replicate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fsetup-replicate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fsetup-replicate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replicate","download_url":"https://codeload.github.com/replicate/setup-replicate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241170222,"owners_count":19921571,"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-11-12T10:07:57.498Z","updated_at":"2025-02-28T14:54:25.900Z","avatar_url":"https://github.com/replicate.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-replicate\n\n## Usage\n\nAdd a step to your workflow that uses this action:\n\n```yaml\n- name: Setup Replicate\n  uses: replicate/setup-replicate@main\n  with:\n    token: ${{ secrets.REPLICATE_API_TOKEN }}\n```\n\nNow you can run the `replicate` CLI in subsequent steps.\n\n\n## Example: Model CI/CD\n\nHere's an example that pushes a Cog model to Replicate whenever your repo's `main` branch is updated:\n\n```yml\nname: CI\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Check out code\n        uses: actions/checkout@v3\n\n      - name: Setup Cog\n        uses: replicate/setup-cog@v1\n        with:\n          token: ${{ secrets.REPLICATE_API_TOKEN }}\n\n      - name: Setup Replicate\n        uses: replicate/setup-replicate@main\n        with:\n          token: ${{ secrets.REPLICATE_API_TOKEN }}\n\n      - name: Push the model\n        run: |\n          cog push r8.im/zeke/hello-world\n\n      - name: Run the model\n        run: |\n          cog run zeke/hello-world\n```\n\n### Inputs\n\nThis following inputs can be specified using the `with` keyword:\n\n- `replicate-version`: The version of the Replicate CLI to install in the form `vX.Y.Z`. See [CLI releases](https://github.com/replicate/cli/releases) for a list of available versions. Defaults to latest.\n- `token`: Your Replicate API token. If set, the Action will automatically authenticate to Replicate using `replicate auth login`. To use this feature, get a token from [replicate.com/account](https://replicate.com/account), then create a repository secret named `REPLICATE_API_TOKEN` in your GitHub repo's settings.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicate%2Fsetup-replicate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplicate%2Fsetup-replicate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicate%2Fsetup-replicate/lists"}