GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - replicate/setup-replicate

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 

Repository files navigation

setup-replicate

Usage

Add a step to your workflow that uses this action:

- name: Setup Replicate
  uses: replicate/setup-replicate@main
  with:
    token: ${{ secrets.REPLICATE_API_TOKEN }}

Now you can run the replicate CLI in subsequent steps.

Example: Model CI/CD

Here's an example that pushes a Cog model to Replicate whenever your repo's main branch is updated:

name: CI

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v3

      - name: Setup Cog
        uses: replicate/setup-cog@v1
        with:
          token: ${{ secrets.REPLICATE_API_TOKEN }}

      - name: Setup Replicate
        uses: replicate/setup-replicate@main
        with:
          token: ${{ secrets.REPLICATE_API_TOKEN }}

      - name: Push the model
        run: |
          cog push r8.im/zeke/hello-world

      - name: Run the model
        run: |
          cog run zeke/hello-world

Inputs

This following inputs can be specified using the with keyword:

  • replicate-version: The version of the Replicate CLI to install in the form vX.Y.Z. See CLI releases for a list of available versions. Defaults to latest.
  • 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, then create a repository secret named REPLICATE_API_TOKEN in your GitHub repo's settings.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.