File tree 4 files changed +65
-1
lines changed
4 files changed +65
-1
lines changed Original file line number Diff line number Diff line change 33
33
- name : Run Tests
34
34
run : |
35
35
pdm run pytest
36
+
37
+ pypi-publish :
38
+ needs : ci
39
+ # Only run this job if new work is pushed to the "master" branch
40
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master1'
41
+
42
+ name : upload release to PyPI
43
+ runs-on : ubuntu-latest
44
+ permissions :
45
+ # This permission is needed for private repositories.
46
+ contents : read
47
+ # IMPORTANT: this permission is mandatory for trusted publishing
48
+ id-token : write
49
+
50
+ # Dedicated environments with protections for publishing are strongly recommended.
51
+ environment :
52
+ name : pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ url : https://pypi.org/p/nvector
55
+
56
+ steps :
57
+ - uses : actions/checkout@v4
58
+
59
+ - uses : pdm-project/setup-pdm@v4
60
+
61
+ - name : Publish release distributions to PyPI
62
+ run : pdm publish
63
+
Original file line number Diff line number Diff line change
1
+ on :
2
+ release :
3
+ types : [published]
4
+
5
+
6
+ jobs :
7
+ pypi-publish :
8
+ name : upload release to PyPI
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ # This permission is needed for private repositories.
12
+ contents : read
13
+ # IMPORTANT: this permission is mandatory for trusted publishing
14
+ id-token : write
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - uses : pdm-project/setup-pdm@v4
19
+
20
+ - name : Publish package distributions to PyPI
21
+ run : pdm publish
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+
4
+ ## [ 1.0.1] - 2024-10-03
5
+
6
+ ### 📚 Documentation
7
+
8
+ - Prepare changelog for automatic updates using semantic versioning
9
+
10
+ ### ⚙️ Miscellaneous Tasks
11
+
12
+ - * (pyproject.toml)* Replace use of python-semantic-release with pdm-bump and git-cliff.
13
+
14
+ ### ◀️ Revert
15
+
16
+ - Remove release1, pypi-publish and test-pypi-publish jobs from workflows/python-package.yml
17
+
3
18
## [ 1.0.0] 2024-10-02
4
19
5
20
- Added pytest-ruff and ruff as test dependencies to pyproject.toml
Original file line number Diff line number Diff line change 5
5
from .objects import * # noqa
6
6
from ._common import use_docstring
7
7
8
- __version__ = "1.0.0 "
8
+ __version__ = "1.0.1 "
9
9
10
10
_PACKAGE_NAME = __name__
11
11
You can’t perform that action at this time.
0 commit comments