You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,10 +101,34 @@ to validate your changes locally before going through CI.
101
101
-`REPLICATE_API_BASE_URL`: Defaults to `https://api.replicate.com` but can be overriden to point the client at a development host.
102
102
-`REPLICATE_API_TOKEN`: Required. Find your token at https://replicate.com/#token
103
103
104
-
## Publishing a release
104
+
## Publishing releases
105
105
106
106
This project has a [GitHub Actions workflow](/.github/workflows/ci.yaml) that publishes the `replicate` package to PyPI. The release process is triggered by manually creating and pushing a new git tag.
107
107
108
+
### Publishing a beta release
109
+
110
+
Betas live in branches off the main branch.
111
+
112
+
First, set the version number in [pyproject.toml](pyproject.toml) and commit it to the `beta` branch.
113
+
114
+
```
115
+
version = "1.1.0b3"
116
+
```
117
+
118
+
Then run the following in your local checkout:
119
+
120
+
```sh
121
+
git checkout beta
122
+
git fetch --all --tags
123
+
git tag 1.1.0b3
124
+
git push --tags
125
+
```
126
+
127
+
Then visit [github.com/replicate/replicate-python/actions](https://github.com/replicate/replicate-python/actions) to monitor the release process.
128
+
129
+
130
+
### Publishing a stable release
131
+
108
132
First, set the version number in [pyproject.toml](pyproject.toml) and commit it to the `main` branch:
0 commit comments