Skip to content

Commit 18ab7d5

Browse files
authored
Autopublish releases action (#35)
1 parent 78a2e7b commit 18ab7d5

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

.github/scripts/increment_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
SETUP_PY_PATH = "setup.py"
88
DEFAULT_CHANGELOG_PATH = "CHANGELOG.md"
9-
DEFAULT_YDB_VERSION_FILE = "ydb/ydb_version.py"
9+
DEFAULT_YDB_VERSION_FILE = "ydb_sqlalchemy/_version.py"
1010
MARKER = "# AUTOVERSION"
1111

1212

.github/workflows/python-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ jobs:
3030
VERSION_CHANGE: ${{ github.event.inputs.version-change }}
3131
WITH_BETA: ${{ github.event.inputs.beta }}
3232
# GITHUB_TOKEN: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
33+
GH_TOKEN: ${{ github.token }}
3334
CHANGELOG_FILE: CHANGELOG.md
3435
SETUP_PY_PATH: setup.py
3536

37+
permissions:
38+
contents: write
39+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
40+
3641
runs-on: ubuntu-latest
3742

3843
steps:
@@ -106,7 +111,4 @@ jobs:
106111
fi;
107112
108113
- name: Publish package
109-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
110-
with:
111-
user: __token__
112-
password: ${{ secrets.PYPI_API_TOKEN }}
114+
uses: pypa/gh-action-pypi-publish@release/v1.8

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## 0.0.1b5 ##
2+
* Initial version

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setuptools.setup(
1515
name="ydb-sqlalchemy",
16-
version="0.0.0", # AUTOVERSION
16+
version="0.0.1b5", # AUTOVERSION
1717
description="YDB Dialect for SQLAlchemy",
1818
author="Yandex LLC",
1919
author_email="ydb@yandex-team.ru",

ydb_sqlalchemy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
from .dbapi import IsolationLevel # noqa: F401
22
from .sqlalchemy import Upsert, types, upsert # noqa: F401
3+
from _version import VERSION

ydb_sqlalchemy/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VERSION = "0.0.1b5"

0 commit comments

Comments
 (0)