Skip to content

Commit

Permalink
Merge pull request #87 from appwrite/dev
Browse files Browse the repository at this point in the history
Add GitHub action for publishing
  • Loading branch information
abnegate authored May 24, 2024
2 parents 1491723 + 13fbe66 commit ad531fe
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to PyPI
on:
release:
types: [published]

jobs:
publish:
name: Release build and publish
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: Build package
run: |
python -m pip install setuptools wheel build
python setup.py sdist bdist_wheel
- name: Publish package
run: |
python -m pip install twine
python -m twine upload -r pypi dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_NON_INTERACTIVE: true
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion appwrite/enums/name.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ class Name(Enum):
V1_BUILDS = "v1-builds"
V1_MESSAGING = "v1-messaging"
V1_MIGRATIONS = "v1-migrations"
HAMSTERV1 = "hamsterv1"

0 comments on commit ad531fe

Please sign in to comment.