Skip to content

Commit

Permalink
Merge pull request #78 from RedisAI/ck-tomlautorelease
Browse files Browse the repository at this point in the history
replacing the version in the toml with the tag
  • Loading branch information
gkorland committed Jul 28, 2021
2 parents 808cc02 + 182a4a5 commit 58a2d17
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@master

- name: get version from tag
id: get_version
run: |
realversion="${GITHUB_REF/refs\/tags\//}"
realversion="${realversion//v/}"
echo "::set-output name=VERSION::$realversion"
- name: Set the version for publishing
uses: ciiiii/toml-editor@1.0.0
with:
file: "pyproject.toml"
key: "tool.poetry.version"
value: "${{ steps.get_version.outputs.VERSION }}"

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
Expand Down

0 comments on commit 58a2d17

Please sign in to comment.