Skip to content

Commit

Permalink
Merge pull request #4 from mondaycom/gh-publish
Browse files Browse the repository at this point in the history
Gh publish
  • Loading branch information
rzmnd authored Oct 14, 2024
2 parents 4489a7b + 294afd0 commit f5a242a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pypa-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/monday-api-python-sdk
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel # Could also be python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# monday-python-sdk
# monday-api-python-sdk

A Python SDK for interacting with Monday's GraphQL API.

Expand All @@ -15,7 +15,7 @@ A Python SDK for interacting with Monday's GraphQL API.
To install the SDK, use pip:

```bash
pip install monday-python-sdk
pip install monday-api-python-sdk
```
## Usage

Expand Down Expand Up @@ -63,7 +63,7 @@ print(item)
```


# monday-python-sdk
# monday-api-python-sdk

A Python SDK for interacting with Monday's GraphQL API.

Expand All @@ -80,7 +80,7 @@ A Python SDK for interacting with Monday's GraphQL API.

To install the SDK, use pip:
```python
pip install monday-python-sdk
pip install monday-api-python-sdk
```
## Usage

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "monday-python-sdk"
name = "monday-api-python-sdk"
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# Fields marked as "Optional" may be commented out.

setup(
name="monday-python-sdk", # Required
version="0.9.1", # Required
name="monday-api-python-sdk", # Required
version="0.9.2", # Required
description="A Python SDK for interacting with Monday's GraphQL API", # Optional
long_description=long_description, # Optional
long_description_content_type="text/markdown", # Optional (see note above)
Expand Down

0 comments on commit f5a242a

Please sign in to comment.