Skip to content

Commit

Permalink
Back to the releaser setup (#355)
Browse files Browse the repository at this point in the history
* Releaser setup

* Iterate

* Fix branch name

* Rename

* Iterate
  • Loading branch information
martinRenou authored Sep 6, 2024
1 parent bdf2801 commit f34de09
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Release
on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: write

jobs:
check_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Check Release
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version_spec: next

- name: Upload Distributions
uses: actions/upload-artifact@v2
with:
name: ipycanvas-releaser-dist-${{ github.run_number }}
path: .jupyter_releaser_checkout/dist
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,20 @@ src = "ipycanvas/_version.py"
[[tool.tbump.file]]
src = "package.json"
version_template = "\"version\": \"{major}.{minor}.{patch}{channel}{release}\""

[tool.jupyter-releaser.hooks]
before-bump-version = [
"python -m pip install hatch jupyterlab~=4.0",
]
before-build-npm = [
"python -m pip install jupyterlab~=4.0",
"jlpm",
"jlpm clean",
"jlpm build",
]
before-build-python = [
"jlpm clean",
]

[tool.check-wheel-contents]
ignore = ["W002"]

0 comments on commit f34de09

Please sign in to comment.