Skip to content

Commit c9e213b

Browse files
committed
🔄 Update workflow to skip publishing when same version existing
1 parent 76c4b74 commit c9e213b

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/publish_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474

7575
- name: Upload to PyPI
7676
uses: pypa/gh-action-pypi-publish@release/v1
77+
with:
78+
skip-existing: true
7779

7880
Publish-TestPyPI: # task 3: publish to TestPyPI
7981
name: 📤 Publish to TestPyPI
@@ -99,6 +101,7 @@ jobs:
99101
uses: pypa/gh-action-pypi-publish@release/v1
100102
with:
101103
repository-url: https://test.pypi.org/legacy/
104+
skip-existing: true
102105

103106
Github-Release: # task 4: create a Github Release
104107
name: 🗳 Create a Release

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<!-- # v1.4.1 -->
2+
3+
![](https://img.shields.io/badge/Version-v1.4.1-green)
4+
5+
## 🔄 Change
6+
7+
- `.github/workflows/publish_release.yml`: add `skip-existing: true` to skip publishing when there exists a same version package.
8+
- `MANIFEST.in`: exclude `shell` files from the package.
9+
10+
---
11+
112
<!-- # v1.4.0 -->
213

314
![](https://img.shields.io/badge/Version-v1.4.0-green)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 📦 A Project Template for Self-developed Python Package
22

3-
[![Package Version](https://img.shields.io/badge/Version-v1.4.0-green)](https://github.com/Ahzyuan/Python-package-template/releases/tag/v1.4.0)
3+
[![Package Version](https://img.shields.io/badge/Version-v1.4.1-green)](https://github.com/Ahzyuan/Python-package-template/releases/tag/v1.4.1)
44
[![License](https://img.shields.io/badge/License-MIT-khaki)](https://opensource.org/license/MIT)
55
![Pypi Template](https://img.shields.io/badge/PyPI-Package_pattern-yellow?logo=pypi&labelColor=%23FAFAFA)
66

0 commit comments

Comments
 (0)