Skip to content

Commit

Permalink
fix: release with CI is missing generated files
Browse files Browse the repository at this point in the history
Fixes: #248
  • Loading branch information
mariobuikhuizen committed Apr 3, 2023
1 parent ee591dc commit 88ff14d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install twine wheel jupyter-packaging jupyterlab
- name: Build
run: python setup.py sdist bdist_wheel
- name: Install
run: pip install dist/*.whl
- name: Import
run: |
python -c "from ipyvuetify import Btn"
python -c "from ipyvuetify import Select"
- name: Publish the Python package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
run: twine upload --skip-existing dist/*
- name: Publish the NPM package
run: |
cd js
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build

on:
on:
- push
- pull_request
- workflow_dispatch
Expand Down Expand Up @@ -34,4 +34,6 @@ jobs:
- name: Install
run: pip install dist/*.whl
- name: Import
run: python -c "from ipyvuetify import Btn"
run: |
python -c "from ipyvuetify import Btn"
python -c "from ipyvuetify import Select"
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include LICENSE
recursive-include ipyvuetify/nbextension *.*
recursive-include ipyvuetify/labextension *.*
recursive-include ipyvuetify/generated *.*
include jupyter-vuetify.json
recursive-include ipyvuetify/extra *.vue
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def run(self):
install_requires=[
"ipyvue>=1.5,<2",
],
packages=find_packages(exclude=["generate_source"]),
packages=find_packages(),
zip_safe=False,
cmdclass={
"build_py": js_prerelease(build_py),
Expand Down

0 comments on commit 88ff14d

Please sign in to comment.