Skip to content

Commit 402ec51

Browse files
committed
Merge branch 'release' of https://github.com/UniversalPython/UniversalPython into release
2 parents 4719db2 + c102340 commit 402ec51

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.github/workflows/release-to-pypi.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ jobs:
3333
pip install -r utils/requirements.txt
3434
3535
- name: Create stable release
36+
id: release
3637
env:
3738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3839
run: |
3940
semantic-release version --commit --tag --push
41+
echo "released=$?" >> $GITHUB_OUTPUT
4042
4143
- name: Build package
44+
if: steps.release.outputs.released == '0'
4245
run: bash utils/build_package.sh
4346

4447
# - name: Publish to TestPyPI
@@ -48,17 +51,8 @@ jobs:
4851
# packages-dir: dist/
4952

5053
- name: Publish to PyPI
54+
if: steps.release.outputs.released == '0'
5155
uses: pypa/gh-action-pypi-publish@release/v1
5256
with:
5357
packages-dir: dist/
54-
55-
- name: Create PR to sync release → main
56-
uses: peter-evans/create-pull-request@v5
57-
with:
58-
token: ${{ secrets.GITHUB_TOKEN }}
59-
base: main
60-
head: release
61-
title: "chore: merge release changes back into main"
62-
body: |
63-
This PR was created automatically after publishing a new PyPI release.
64-
It keeps `main` in sync with version and changelog updates.
58+
skip-existing: true

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
<!-- version list -->
44

5+
## v0.2.0 (2025-10-30)
6+
7+
### Features
8+
9+
- Major update
10+
([`ba34ec4`](https://github.com/UniversalPython/UniversalPython/commit/ba34ec4e9b8a153aa0a3699a65e27609733e87da))
11+
12+
13+
## v0.1.0 (2025-10-30)
14+
15+
- Initial Release
16+
517
## v0.1.9-b.7 (2025-10-29)
618

719

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ universalpython = "universalpython.universalpython:main"
4747
[tool.semantic_release]
4848
version_toml = ["pyproject.toml:project.version"]
4949
upload_to_pypi = false
50-
tag_format = "{version}"
50+
tag_format = "v{version}"
5151
build_command = "bash ./utils/build_package.sh"
5252
commit_parser = "angular"
53+
commit_parser = "angular"
5354
major_on_zero = true
5455
allow_zero_version = true
5556
prerelease_token = "b"

0 commit comments

Comments
 (0)