Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 08e5a8c

Browse files
Merge pull request #136 from RedisGraph/ck-tomlautorelease
replacing the version in the toml with the tag
2 parents 896ae4e + f145890 commit 08e5a8c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎.github/workflows/publish-pypi.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ jobs:
1111
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1212
steps:
1313
- uses: actions/checkout@master
14+
15+
- name: get version from tag
16+
id: get_version
17+
run: |
18+
realversion="${GITHUB_REF/refs\/tags\//}"
19+
realversion="${realversion//v/}"
20+
echo "::set-output name=VERSION::$realversion"
21+
22+
- name: Set the version for publishing
23+
uses: ciiiii/toml-editor@1.0.0
24+
with:
25+
file: "pyproject.toml"
26+
key: "tool.poetry.version"
27+
value: "${{ steps.get_version.outputs.VERSION }}"
28+
1429
- name: Set up Python 3.7
1530
uses: actions/setup-python@v1
1631
with:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /