diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..278cf7f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: Build and upload to PyPI +on: [push, release] + +jobs: + build_artifacts: + name: Build artifacts + runs-on: ubuntu-latest + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v3 + - uses: conda-incubator/setup-miniconda@v2 + with: + miniforge-variant: Mambaforge + miniforge-version: 22.9.0-2 + use-mamba: true + environment-file: environment.yml + activate-environment: vscode-binder + - shell: bash -el {0} + run: + python -m build + - uses: pypa/gh-action-pypi-publish@v1.5.1 + if: github.event_name == 'release' + with: + user: __token__ + password: ${{ secrets.PYPI_RELEASE_TOKEN }} diff --git a/environment.yml b/environment.yml index bc2c718..7ea9cee 100644 --- a/environment.yml +++ b/environment.yml @@ -1,6 +1,8 @@ +name: vscode-binder channels: - conda-forge dependencies: - numpy + - python-build - jupyter-server-proxy - code-server >=3.2 diff --git a/setup.py b/setup.py index f51d1b7..942409f 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setuptools.setup( name="jupyter-vscode-proxy", - version="0.1", + version="0.2", url="https://github.com/betatim/vscode-binder", author="Tim Head", license="BSD",