| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
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-worldThis following inputs can be specified using the with keyword:
| Back | FazBrowse Home | New Git URL |