From 42ddf714758e18684d913c8e2ad2a29416da6cde Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Thu, 11 Jan 2024 16:37:54 -0800 Subject: [PATCH] fix publish --- .github/workflows/publish.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a3728ca..f542653 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,9 +16,12 @@ jobs: - run: pipx install poetry - uses: actions/setup-python@v5 with: + python-version: '3.x' cache: poetry - run: | - poetry version -- ${GIT_REF_NAME#v} + poetry version ${GITHUB_REF_NAME#v} poetry build - uses: pypa/gh-action-pypi-publish@release/v1 - run: gh release upload $GIT_REF_NAME dist/* + env: + GH_TOKEN: ${{ github.token }}