diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ee5437c..916cf40 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,10 +11,10 @@ jobs: environment: name: pypi url: https://pypi.org/p/pointextract - permissions: - id-token: write steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # setuptools_scm to determine the version - name: Set up Python uses: actions/setup-python@v4 with: @@ -22,10 +22,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel + pip install setuptools wheel build setuptools_scm - name: Build package - run: | - python -m build + run: python -m build - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: