Skip to content

Commit 2c7137d

Browse files
CI pipeline
1 parent 05496d2 commit 2c7137d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
name: Test Stable Diffusion
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Install Cog
12+
run: curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)" && chmod +x /usr/local/bin/cog
13+
- name: Cog login"
14+
run: echo "${{ secrets.COG_LOGIN_TOKEN }}" | cog login --token-stdin
15+
- name: Download weights
16+
run: cog run script/download-weights
17+
- name: Push to CI model on Replicate
18+
run: cog push r8.im/replicate/stable-diffusion-ci

0 commit comments

Comments
 (0)