8000 fix: RTD output path + PyPI/TestPyPI publish via secrets by dominicusin · Pull Request #46 · dominicusin/package-maximizer · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
name: testpypi
url: https://test.pypi.org/p/package-maximizer
permissions:
id-token: write
contents: read
steps:
- uses: actions/download-artifact@v4
with: {name: dist-test, path: dist}
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.14.2
with:
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ jobs:
path: dist/

pypi-publish:
name: Upload to PyPI (trusted publishing)
name: Upload to PyPI
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/package-maximizer
permissions:
id-token: write
contents: read
steps:
- uses: actions/download-artifact@v4
with: {name: dist, path: dist}
- name: Publish
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.14.2
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
- python -m pip install --upgrade pip
- python -m pip install -e ".[dev,web,tui]"
- python -m pip install sphinx sphinx-rtd-theme myst-parser
- sphinx-build -b html docs docs/_build/html
4D0A - sphinx-build -b html docs $READTHEDOCS_OUTPUT/html

sphinx:
configuration: docs/conf.py
Loading
0