X Tutup
Skip to content

Commit c5e5b17

Browse files
committed
feat: Update
1 parent c8b346f commit c5e5b17

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,25 @@ jobs:
3333
pip install -r utils/requirements.txt
3434
3535
- name: Create stable release
36+
id: release
3637
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3839
run: |
3940
semantic-release version --commit --tag --push
4041
4142
- name: Build package
4243
run: bash utils/build_package.sh
43-
- name: Publish to TestPyPI
44-
uses: pypa/gh-action-pypi-publish@release/v1
45-
with:
46-
repository-url: https://test.pypi.org/legacy/
47-
packages-dir: dist/
44+
45+
# - name: Publish to TestPyPI
46+
# uses: pypa/gh-action-pypi-publish@release/v1
47+
# with:
48+
# repository-url: https://test.pypi.org/legacy/
49+
# packages-dir: dist/
4850

4951
- name: Publish to PyPI
5052
uses: pypa/gh-action-pypi-publish@release/v1
5153
with:
52-
packages-dir: dist/
53-
54-
- name: Create PR to sync release → main
54+
packages-dir: dist/nc release → main
5555
uses: peter-evans/create-pull-request@v5
5656
with:
5757
token: ${{ secrets.GITHUB_TOKEN }}

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "universalpython"
7-
version = "0.1.9-b.7"
7+
version = "0.3.2"
88
authors = [
99
{name = "Saad Bazaz", email = "saadbazaz@hotmail.com"},
1010
]
@@ -47,7 +47,7 @@ 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 = "conventional"
5353
major_on_zero = true
@@ -56,6 +56,9 @@ prerelease_token = "b"
5656
changelog_file = "./CHANGELOG.md"
5757

5858
[tool.semantic_release.commit_parser_options]
59+
allowed_tags = ["feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore"]
60+
minor_tags = ["feat"]
61+
patch_tags = ["fix", "perf"]
5962
parse_squash_commits = true
6063
ignore_merge_commits = true
6164

@@ -69,5 +72,4 @@ prerelease = false
6972

7073
[tool.semantic_release.branches.main]
7174
match = "main"
72-
prerelease = true
73-
prerelease_token = "b"
75+
prerelease = true

0 commit comments

Comments
 (0)
X Tutup