Skip to content

Commit

Permalink
Merge pull request #44 from nebari-dev/release-utils
Browse files Browse the repository at this point in the history
Add some release utils
  • Loading branch information
aktech committed Jan 6, 2024
2 parents 31f28e8 + 4e00b5c commit e5abe5e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on: [release, workflow_dispatch]

env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.HATCH_INDEX_AUTH }}

name: Release
jobs:
release:
name: Release jhub-apps
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Python
uses: mamba-org/[email protected]
with:
python-version: ${{ matrix.python-version }}
environment-file: environment-dev.yml
create-args: >-
python=${{ matrix.python-version }}
numpy
-c conda-forge
- name: Hatch Build
run: hatch build

- name: Hatch Publish
run: hatch publish -n
3 changes: 2 additions & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: jhub-apps-dev
channels:
- conda-forge
dependencies:
- flask
- uvicorn
- fastapi
- jupyterhub
- jupyter
- plotlydash-tornado-cmd
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ dependencies = [
"hatchling",
"hatch",
"requests",
"flask",
"fastapi",
"uvicorn",
"jupyterhub",
"jupyter",
"plotlydash-tornado-cmd",
Expand Down

0 comments on commit e5abe5e

Please sign in to comment.