Skip to content

Commit 66cfefe

Browse files
authored
RLS: v0.5.1 and move Publish to PyPI action to dedicated file (#180)
1 parent e529aa0 commit 66cfefe

File tree

4 files changed

+41
-25
lines changed

4 files changed

+41
-25
lines changed

.github/workflows/integration.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -66,27 +66,3 @@ jobs:
6666
run: |
6767
cd docs
6868
make html
69-
70-
publish:
71-
72-
name: Publish to PyPI
73-
needs: [pre-commit, docs]
74-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
75-
runs-on: ubuntu-latest
76-
steps:
77-
- name: Checkout source
78-
uses: actions/checkout@v3
79-
- name: Set up Python
80-
uses: actions/setup-python@v4
81-
with:
82-
python-version: "3.x"
83-
- name: Build package
84-
run: |
85-
pip install build
86-
git submodule update --init
87-
python -m build
88-
- name: Publish
89-
uses: pypa/[email protected]
90-
with:
91-
user: __token__
92-
password: ${{ secrets.PYPI_KEY }}

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This will run every time a tag is created and pushed to the repository.
2+
# It calls our tests workflow via a `workflow_call`, and if tests pass
3+
# then it triggers our upload to PyPI for a new release.
4+
name: Publish to PyPI
5+
on:
6+
release:
7+
types: ["published"]
8+
9+
jobs:
10+
tests:
11+
uses: ./.github/workflows/integration.yml
12+
publish:
13+
name: publish
14+
needs: [tests] # require tests to pass before deploy runs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout source
18+
uses: actions/checkout@v3
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.x"
23+
- name: Build package
24+
run: |
25+
pip install build
26+
git submodule update --init
27+
python -m build
28+
- name: Publish
29+
uses: pypa/[email protected]
30+
with:
31+
user: __token__
32+
password: ${{ secrets.PYPI_KEY }}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v0.5.1 - 2022-11-15
4+
5+
([full changelog](https://github.com/executablebooks/sphinx-copybutton/compare/v0.5.0...e529aa0c7c0bf6ad880904f7a8876f33040e5c09))
6+
7+
- ENH: Unselectable text is now also not highlighted when you manually highlight a code cell. Exclude unselectable text from being copied (update) [#178](https://github.com/executablebooks/sphinx-copybutton/pull/178) ([@rkdarst](https://github.com/rkdarst))
8+
- ENH: After copying, the copybutton will disappear _before_ the icon changes back if you are no longer hovering on the code cell. FIX: Make copybutton remain for a second during success [#176](https://github.com/executablebooks/sphinx-copybutton/pull/176) ([@choldgraf](https://github.com/choldgraf))
9+
- MAINT: Add support for Python 3.10 [#174](https://github.com/executablebooks/sphinx-copybutton/pull/174) ([@hugovk](https://github.com/hugovk))
10+
311
## 0.5.0 - 2022-02-05
412

513
([full changelog](https://github.com/executablebooks/sphinx-copybutton/compare/v0.4.0...915aa4cf0b06f7b781bc4edfc204c62f2ce7cdb6))

sphinx_copybutton/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33
from sphinx.util import logging
44

5-
__version__ = "0.5.0"
5+
__version__ = "0.5.1"
66

77
logger = logging.getLogger(__name__)
88

0 commit comments

Comments
 (0)