File tree Expand file tree Collapse file tree
Open diff view settings
Expand file tree Collapse file tree
Open diff view settings
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: PyPI-Release
33on :
44 push :
55 branches :
6- - master
6+ - main
77
88jobs :
99 build-and-publish :
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## [ Unreleased]
88
9+ ### Changed
10+ - Default branch changed from ` master ` to ` main ` ([ #180 ] )
11+
912
1013## [ 1.4.0] — 2022-07-14
1114### Added
@@ -165,3 +168,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
165168[ #170 ] : https://github.com/cloudevents/sdk-python/pull/170
166169[ #172 ] : https://github.com/cloudevents/sdk-python/pull/172
167170[ #173 ] : https://github.com/cloudevents/sdk-python/pull/173
171+ [ #180 ] : https://github.com/cloudevents/sdk-python/pull/180
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ To release a new CloudEvents SDK, contributors should bump `__version__` in
77[ cloudevents] ( cloudevents/__init__.py ) to reflect the new release version. On merge, the action
88will automatically build and release to PyPI using
99[ this PyPI GitHub Action] ( https://github.com/pypa/gh-action-pypi-publish ) . This
10- action gets called on all pushes to master (such as a version branch being merged
11- into master ), but only releases a new version when the version number has changed. Note,
12- this action assumes pushes to master are version updates. Consequently,
10+ action gets called on all pushes to main (such as a version branch being merged
11+ into main ), but only releases a new version when the version number has changed. Note,
12+ this action assumes pushes to main are version updates. Consequently,
1313[ pypi-release.yml] ( .github/workflows/pypi-release.yml ) will fail if you attempt to
14- push to master without updating ` __version__ ` in
14+ push to main without updating ` __version__ ` in
1515[ cloudevents] ( cloudevents/__init__.py ) so don't forget to do so.
1616
1717After a version update is merged, the script [ pypi_packaging.py] ( pypi_packaging.py )
Original file line number Diff line number Diff line change 1111# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1212# License for the specific language governing permissions and limitations
1313# under the License.
14+ #
15+ # Licensed under the Apache License, Version 2.0 (the "License"); you may
16+ # not use this file except in compliance with the License. You may obtain
17+ # a copy of the License at
18+ #
19+ # http://www.apache.org/licenses/LICENSE-2.0
20+ #
21+ # Unless required by applicable law or agreed to in writing, software
22+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
23+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
24+ # License for the specific language governing permissions and limitations
25+ # under the License.
1426
1527import os
1628
@@ -33,7 +45,7 @@ def createTag():
3345 repo = Repo (os .getcwd ())
3446 repo .create_tag (pypi_config ["version_target" ])
3547
36- # Push git tag to remote master
48+ # Push git tag to remote main
3749 origin = repo .remote ()
3850 origin .push (pypi_config ["version_target" ])
3951
You can’t perform that action at this time.
0 commit comments