From c5c8375e6a3169fe3da49e73658583eb8ef07b9a Mon Sep 17 00:00:00 2001 From: urasakikeisuke Date: Wed, 15 May 2024 18:48:54 +0900 Subject: [PATCH] WIP: Update GitHub Actions workflow and project configuration for PyPI deployment Signed-off-by: urasakikeisuke --- .github/workflows/deploy-pypi.yaml | 8 ++++---- pyproject.toml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-pypi.yaml b/.github/workflows/deploy-pypi.yaml index 0b60daa..0d28836 100644 --- a/.github/workflows/deploy-pypi.yaml +++ b/.github/workflows/deploy-pypi.yaml @@ -4,13 +4,13 @@ on: release: types: [published] + workflow_dispatch: + jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 @@ -29,5 +29,5 @@ jobs: - name: Build distribution packages run: rye build --clean - - name: Publish to PyPI - run: rye publish --yes --verbose --token ${{ secrets.PYPI_TOKEN }} + # - name: Publish to PyPI + # run: rye publish --yes --verbose --token ${{ secrets.PYPI_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index a4aa109..b0eba08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,8 +76,8 @@ local_scheme = "no-local-version" [tool.setuptools_scm] write_to = "src/pypcd4/_version.py" -version_scheme = "guess-next-dev" -local_scheme = "node-and-date" +version_scheme = "only-version" +local_scheme = "no-local-version" [tool.ruff] line-length = 100