Skip to content

Commit 0a95e63

Browse files
authored
ci: migrate to main branch (#180)
* ci: migrate to `main` branch Signed-off-by: Yurii Serhiichuk <[email protected]> * docs: mentioned default branch change in the changelog Signed-off-by: Yurii Serhiichuk <[email protected]>
1 parent 86e6002 commit 0a95e63

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.github/workflows/pypi-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PyPI-Release
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
build-and-publish:

CHANGELOG.md

+4
Original file line numberDiff line numberDiff 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

RELEASING.md

+4-4
Original file line numberDiff line numberDiff 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
88
will 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

1717
After a version update is merged, the script [pypi_packaging.py](pypi_packaging.py)

pypi_packaging.py

+13-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
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

1527
import 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

0 commit comments

Comments
 (0)