From ef38c1c036639beaa5351af3d22319c88619dd6f Mon Sep 17 00:00:00 2001 From: Abao Zhang Date: Mon, 13 Jan 2025 18:03:51 +0800 Subject: [PATCH] ci: release 0.3.1 --- .github/workflows/publish.yaml | 35 ++++++++++++++++++++++++++++++++++ RELEASE.md | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..171752c --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,35 @@ +name: Publish to PyPI +on: + release: + types: [published] +permissions: + contents: read +jobs: + deploy: + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: pip + - name: Jupyter base setup + uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Install dependencies + run: python -m pip install -U "jupyterlab>=4.0.0,<5" + - name: Install dependencies + run: "python -m pip install --upgrade pip \npip install hatch\n" + - name: Build package + run: hatch build + # - name: Test package + # run: hatch run test + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/RELEASE.md b/RELEASE.md index 58e98ff..472d6b7 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,4 +1,4 @@ -# Making a new release of neopyter.nvim +# Making a new release of neopyter The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).