File tree Expand file tree Collapse file tree 4 files changed +77
-4
lines changed Expand file tree Collapse file tree 4 files changed +77
-4
lines changed Original file line number Diff line number Diff line change
1
+ [bumpversion]
2
+ current_version = 0.21.0
3
+ commit = True
4
+ tag = True
5
+ tag_name = {new_version}
6
+ message = " Bump version: {current_version} → {new_version}"
7
+
8
+ [bumpversion:file:sparkmagic/sparkmagic/__init__.py]
9
+ search = __version__ = " {current_version}"
10
+ replace = __version__ = " {new_version}"
11
+
12
+ [bumpversion:file:autovizwidget/autovizwidget/__init__.py]
13
+ search = __version__ = " {current_version}"
14
+ replace = __version__ = " {new_version}"
15
+
16
+ [bumpversion:file:hdijupyterutils/hdijupyterutils/__init__.py]
17
+ search = __version__ = " {current_version}"
18
+ replace = __version__ = " {new_version}"
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Release
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ inputs :
7
+ type :
8
+ type : choice
9
+ description : Select type of bump version
10
+ # https://github.com/jaumann/github-bumpversion-action/tree/v0.0.7/?tab=readme-ov-file#bumping
11
+ options :
12
+ - major
13
+ - minor
14
+ - patch
15
+ default : ' patch'
16
+ jobs :
17
+ release :
18
+ # Do not run this job for pull requests where both branches are from the same repo.
19
+ # Jobs that depend on this one will be skipped too.
20
+ # This prevents duplicate CI runs for our own pull requests, whilst preserving the ability to
21
+ # run the CI for each branch push to a fork, and for each pull request originating from a fork.
22
+ if : github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
23
+ permissions :
24
+ contents : write
25
+ packages : write
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Check out code
29
+ uses : actions/checkout@v4
30
+ with :
31
+ persist-credentials : true
32
+ fetch-depth : 0
33
+ ref : master
34
+
35
+ - name : Bump version and create tag
36
+ uses :
jasonamyers/[email protected]
37
+ id : bump
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ DEFAULT_BUMP : ${{ inputs.type }}
41
+
42
+ - name : Push tag
43
+ run : git push origin master --tags
44
+ env :
45
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
+
47
+ - name : Create GitHub Release with changelog
48
+ id : create_release
49
+
50
+ with :
51
+ name : ${{ steps.bump.outputs.new_ver }}
52
+ bodyFile : CHANGELOG.md
53
+ tag : ${{ steps.bump.outputs.new_ver }}
54
+ env :
55
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 6
6
7
7
- Enable automated test run as required step for release process
8
8
- Enable basic DependaBot scanning for pip packages and GitHub actions used in CI
9
+ - Add CI support for release proces with [ release.yaml] ( .github/workflows/release.yml ) workflow
10
+ - Release documentation is updated acrodingly in [ RELEASING.md] ( ./RELEASING.md )
9
11
10
12
## 0.21.0
11
13
Original file line number Diff line number Diff line change 1
1
# How to release
2
2
3
- 1 . Make sure ` CHANGELOG.md ` is up-to-date with all changes since last release.
4
- 2 . Update versions in all three sub-package's ` __init__.py ` files.
5
- 3 . Update ` appVersion ` in [ Chart.yaml] ( helm/Chart.yaml )
6
- 4 . Create a new release on ` master ` branch with https://github.com/jupyter-incubator/sparkmagic/releases/new — Tag format is "0.15.0", no "v" prefix.
3
+ 1 . Make sure ` CHANGELOG.md ` is up-to-date with all changes since last release and available on ` master ` branch.
4
+ 2 . Go to Actions -> Release workflow -> Run workflow -> Select ` patch|minor|major ` depending of the changes you want to release, set ` master ` branch as desired branch
You can’t perform that action at this time.
0 commit comments