From c74d0a3be483d08c9dd42047c00486fc11c91f56 Mon Sep 17 00:00:00 2001 From: Lei Shi Date: Sat, 25 Nov 2023 16:10:48 +0100 Subject: [PATCH] use sed to replace version number --- .github/workflows/release-gcsim.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-gcsim.yml b/.github/workflows/release-gcsim.yml index 580b4b7..1cb98de 100644 --- a/.github/workflows/release-gcsim.yml +++ b/.github/workflows/release-gcsim.yml @@ -80,6 +80,9 @@ jobs: - name: Add git safe directory run: git config --global --add safe.directory /github/workspace + - name: Update version + run: sed -i 's/^version = .*/version = "'"${{ needs.check.outputs.version }}"'"/' pyproject.toml + # Upload to PyPI - name: Build and publish to pypi uses: JRubics/poetry-publish@v1.17