diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8c56291..d48871e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,11 +13,6 @@ jobs: with: fetch-depth: 0 - - name: Show Git tags - run: | - git tag # 태그 정보를 출력하여 확인 - git describe --tags - - name: Set up Python uses: actions/setup-python@v4 with: @@ -28,6 +23,13 @@ jobs: curl -sSL https://install.python-poetry.org | python3 - echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Set version from release tag + run: | + TAG_NAME=${{ github.event.release.tag_name }} + echo "Release tag: $TAG_NAME" + poetry version ${TAG_NAME#v} # 'v' 접두사를 제거하고 버전 설정 + cat pyproject.toml # 확인용 + - name: Install dependencies run: | poetry install --with dev diff --git a/pyproject.toml b/pyproject.toml index c9eacf6..cfc31f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,4 @@ pytest = "^8.3.4" [build-system] requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" - -[tool.poetry-dynamic-versioning] -enable = true \ No newline at end of file +build-backend = "poetry.core.masonry.api" \ No newline at end of file