We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 808cc02 commit 182a4a5Copy full SHA for 182a4a5
.github/workflows/publish-pypi.yml
@@ -11,6 +11,21 @@ jobs:
11
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
12
steps:
13
- 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/[email protected]
24
+ with:
25
+ file: "pyproject.toml"
26
+ key: "tool.poetry.version"
27
+ value: "${{ steps.get_version.outputs.VERSION }}"
28
29
- name: Set up Python 3.7
30
uses: actions/setup-python@v1
31
with:
0 commit comments