From cc0d74690631139d6b59ff3d16fc8c901e347304 Mon Sep 17 00:00:00 2001 From: Rui LIU Date: Sat, 17 Apr 2021 15:50:34 +0800 Subject: [PATCH] Prepare for pypi publish; --- .github/workflows/Publish.Pypi.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Publish.Pypi.yml b/.github/workflows/Publish.Pypi.yml index 82b7988..86ede06 100644 --- a/.github/workflows/Publish.Pypi.yml +++ b/.github/workflows/Publish.Pypi.yml @@ -21,7 +21,9 @@ jobs: with: args: "-f docbook README.xml -t markdown_strict -o README.md" - name: Get VERSION - run: echo ${{ env.GITHUB_REF }} > VERSION + id: GetVersion + uses: WyriHaximus/github-action-get-previous-tag@v1 + - run: echo ${{ steps.GetVersion.outputs.tag }} > VERSION - name: Build run: python -m build - name: Publish