Skip to content

Commit

Permalink
Autopublish releases action (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby authored Mar 22, 2024
1 parent 78a2e7b commit 18ab7d5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/increment_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

SETUP_PY_PATH = "setup.py"
DEFAULT_CHANGELOG_PATH = "CHANGELOG.md"
DEFAULT_YDB_VERSION_FILE = "ydb/ydb_version.py"
DEFAULT_YDB_VERSION_FILE = "ydb_sqlalchemy/_version.py"
MARKER = "# AUTOVERSION"


Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ jobs:
VERSION_CHANGE: ${{ github.event.inputs.version-change }}
WITH_BETA: ${{ github.event.inputs.beta }}
# GITHUB_TOKEN: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
GH_TOKEN: ${{ github.token }}
CHANGELOG_FILE: CHANGELOG.md
SETUP_PY_PATH: setup.py

permissions:
contents: write
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -106,7 +111,4 @@ jobs:
fi;
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1.8
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## 0.0.1b5 ##
* Initial version
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include requirements.txt
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setuptools.setup(
name="ydb-sqlalchemy",
version="0.0.0", # AUTOVERSION
version="0.0.1b5", # AUTOVERSION
description="YDB Dialect for SQLAlchemy",
author="Yandex LLC",
author_email="[email protected]",
Expand Down
1 change: 1 addition & 0 deletions ydb_sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from .dbapi import IsolationLevel # noqa: F401
from .sqlalchemy import Upsert, types, upsert # noqa: F401
from _version import VERSION
1 change: 1 addition & 0 deletions ydb_sqlalchemy/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION = "0.0.1b5"

0 comments on commit 18ab7d5

Please sign in to comment.