From 502d3ed2bf9a13bf4be8d1265a01b27fbff57cc8 Mon Sep 17 00:00:00 2001 From: Ruilong Li <397653553@qq.com> Date: Fri, 27 Sep 2024 03:52:58 +0000 Subject: [PATCH] fix workflow --- .github/workflows/publish.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 941866cc..9dd3167d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,9 @@ on: release: types: [created] +permissions: + contents: write + jobs: # Build the wheels using reusable_building.yml @@ -68,6 +71,8 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./whl # Directory where the simple index pages are located destination_dir: whl # The 'wh' folder in the GitHub Pages root + keep_files: false # This will only erase the destination subdirectory. + cname: docs.gsplat.studio upload_pypi: name: Upload to PyPi @@ -80,6 +85,11 @@ jobs: name: pypi_packages path: dist + - name: Install dependencies + run: | + python -m pip install build twine + shell: bash + # - name: Publish package to Test PyPI # uses: pypa/gh-action-pypi-publish@release/v1 # with: @@ -90,4 +100,5 @@ jobs: env: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} run: | - twine upload --username __token__ --password $PYPI_TOKEN dist/* \ No newline at end of file + twine upload --username __token__ --password $PYPI_TOKEN dist/* + shell: bash \ No newline at end of file