Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruilong Li committed Sep 27, 2024
1 parent 9c70035 commit 502d3ed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
release:
types: [created]

permissions:
contents: write

jobs:

# Build the wheels using reusable_building.yml
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -90,4 +100,5 @@ jobs:
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --username __token__ --password $PYPI_TOKEN dist/*
twine upload --username __token__ --password $PYPI_TOKEN dist/*
shell: bash

0 comments on commit 502d3ed

Please sign in to comment.