Skip to content

Commit

Permalink
replacing the version in the toml with the tag
Browse files Browse the repository at this point in the history
as part of the release drafter process
  • Loading branch information
chayim committed Jul 27, 2021
1 parent 896ae4e commit f145890
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 f145890

Please sign in to comment.