Skip to content

Commit

Permalink
Merge pull request #34 from xhochy/gha
Browse files Browse the repository at this point in the history
Add Github Actions workflow to build and publish
  • Loading branch information
xhochy authored Nov 26, 2022
2 parents e08502d + 07bbff2 commit 7869d63
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
if: github.event_name == 'release'
with:
user: __token__
password: ${{ secrets.PYPI_RELEASE_TOKEN }}
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: vscode-binder
channels:
- conda-forge
dependencies:
- numpy
- python-build
- jupyter-server-proxy
- code-server >=3.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7869d63

Please sign in to comment.