Skip to content

Commit 010b8cb

Browse files
committed
Add release step to GH Action
1 parent aafaad5 commit 010b8cb

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/build.yml

+17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build
22

33
on:
4+
release:
5+
types: [published]
46
push:
57
branches: main
68
pull_request:
@@ -61,3 +63,18 @@ jobs:
6163
make html
6264
python -m pytest --check-links
6365
popd
66+
67+
- name: Build
68+
if: github.event_name == 'release'
69+
run: |
70+
python -m pip install --upgrade -v -e ".[test, examples, docs]"
71+
yarn build
72+
rm -rf dist
73+
74+
python -m build .
75+
76+
- name: Publish package
77+
if: github.event_name == 'release'
78+
uses: pypa/gh-action-pypi-publish@release/v1
79+
with:
80+
password: ${{ secrets.PYPI_API_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterannotate",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "A Jupyter Text Annotation Widget",
55
"keywords": [
66
"jupyter",

0 commit comments

Comments
 (0)