Skip to content

Commit ad531fe

Browse files
authored
Merge pull request #87 from appwrite/dev
Add GitHub action for publishing
2 parents 1491723 + 13fbe66 commit ad531fe

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to PyPI
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Release build and publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.8'
18+
19+
- name: Build package
20+
run: |
21+
python -m pip install setuptools wheel build
22+
python setup.py sdist bdist_wheel
23+
24+
- name: Publish package
25+
run: |
26+
python -m pip install twine
27+
python -m twine upload -r pypi dist/*
28+
env:
29+
TWINE_USERNAME: __token__
30+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
31+
TWINE_NON_INTERACTIVE: true

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

appwrite/enums/name.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ class Name(Enum):
1313
V1_BUILDS = "v1-builds"
1414
V1_MESSAGING = "v1-messaging"
1515
V1_MIGRATIONS = "v1-migrations"
16-
HAMSTERV1 = "hamsterv1"

0 commit comments

Comments
 (0)