Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/py-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,30 @@ name: Python Publish Package

on:
push:
paths: "apitable.py/pyproject.toml"
tags:
- "apitable.py@*"

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.10.12
python-version: "3.10"
- name: Python Poetry
uses: abatilo/actions-poetry@v2
with:
working-directory: ./apitable.py
poetry-version: 1.5.1
- name: Build and publish
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Build
run: |
cd apitable.py
make install
poetry publish --username=$PYPI_USERNAME --password=$PYPI_PASSWORD --build
poetry lock --no-update
poetry install
poetry build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: apitable.py/dist/
2 changes: 1 addition & 1 deletion apitable.py/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apitable.py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "apitable"
version = "1.4.2"
version = "1.5.0"
description = "APITable OpenAPI Python SDK"
authors = ["APITable Ltd. <dev@apitable.com>"]
readme = "README.md"
Expand Down
Loading