File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 4343 name : Upload docs to GitHub pages
4444 runs-on : ubuntu-latest
4545 needs : build-docs
46- if : github.event_name == 'push' && github.ref_name == 'main'
46+ if : contains( github.ref, 'tags')
4747 steps :
4848 - uses : actions/checkout@v3
4949 - uses : actions/download-artifact@v3
Original file line number Diff line number Diff line change @@ -73,21 +73,22 @@ jobs:
7373 needs : [test]
7474 runs-on : ubuntu-latest
7575 if : contains(github.ref, 'tags')
76+ environment : pypi-deploy
7677 steps :
7778 - uses : actions/checkout@v2
7879 - name : Set up Python
7980 uses : actions/setup-python@v2
8081 with :
8182 python-version : " 3.x"
82- - name : Install dependencies
83+ - name : Install build
8384 run : |
8485 python -m pip install --upgrade pip
85- pip install -U setuptools setuptools_scm wheel twine build
86- - name : Build and publish
87- env :
88- TWINE_USERNAME : __token__
89- TWINE_PASSWORD : ${{ secrets.TWINE_API_KEY }}
86+ python -m pip install --upgrade build
87+
88+ - name : Build package
9089 run : |
9190 git tag
9291 python -m build .
93- twine upload dist/*
92+
93+ - name : Publish package
94+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ Visual improvements
1515~~~~~~~~~~~~~~~~~~~
1616- The background of ``napari-matplotlib `` figures and axes is now transparent, and the text and axis colour respects the ``napari `` theme.
1717- The icons in the Matplotlib toolbar are now the same size as icons in the napari window.
18+ - Custom style sheets can now be set to customise plots. See the user guide
19+ for more information.
1820
1921Changes
2022~~~~~~~
Original file line number Diff line number Diff line change 8787# a list of builtin themes.
8888#
8989html_theme = "pydata_sphinx_theme"
90+ html_logo = "_static/logo.png"
9091
9192# Add any paths that contain custom static files (such as style sheets) here,
9293# relative to this directory. They are copied after the builtin static files,
You can’t perform that action at this time.
0 commit comments