From 6aa31b44c6b96966ad330b34a84bca080c579c38 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Mon, 9 Dec 2024 14:20:16 -0500 Subject: [PATCH] make sure to checkout tag before creating release (#2164) --- .github/workflows/pypi.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index f6b897f76..1be8b2cbf 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -13,10 +13,13 @@ jobs: permissions: contents: write steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Create release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release create ${GITHUB_REF#refs/tags/} + run: gh release create "$GITHUB_REF_NAME" --generate-notes pypi-publish: name: Upload release to PyPI runs-on: ubuntu-latest