File tree Expand file tree Collapse file tree 1 file changed +6
-56
lines changed
Expand file tree Collapse file tree 1 file changed +6
-56
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: CI
33on :
44 push :
55 branches : [ main ]
6+ paths-ignore :
7+ - ' README.md'
8+ - ' CHANGELOG.md'
9+ - ' LICENSE'
10+ - ' docs/**'
611 pull_request :
712 branches : [ main ]
813
6267 uses : codecov/codecov-action@v4
6368 with :
6469 token : ${{ secrets.CODECOV_TOKEN }}
65- fail_ci_if_error : false
66-
67- release :
68- needs : test
69- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
70- runs-on : ubuntu-latest
71- concurrency : release
72- permissions :
73- id-token : write
74- contents : write
75- issues : write
76- pull-requests : write
77-
78- steps :
79- - uses : actions/checkout@v4
80- with :
81- fetch-depth : 0
82- token : ${{ secrets.GITHUB_TOKEN }}
83-
84- - name : Set up Python
85- uses : actions/setup-python@v5
86- with :
87- python-version : " 3.12"
88- cache : ' pip'
89-
90- - name : Install Poetry
91- uses : snok/install-poetry@v1
92- with :
93- version : 1.8.3
94- virtualenvs-create : true
95- virtualenvs-in-project : true
96-
97- - name : Install dependencies
98- run : poetry install
99-
100- - name : Python Semantic Release
101- id : semantic-release
102- run : |
103- git config --global user.name "semantic-release"
104- git config --global user.email "semantic-release@users.noreply.github.com"
105- # Debug information
106- echo "Current git status:"
107- git status
108- echo "Current branch:"
109- git branch
110- # Run semantic release with verbose output
111- poetry run semantic-release --verbose version
112- # Only publish if version command succeeded
113- if [ $? -eq 0 ]; then
114- poetry run semantic-release --verbose publish
115- else
116- echo "Version command failed, skipping publish"
117- exit 1
118- fi
119- env :
120- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70+ fail_ci_if_error : false
You can’t perform that action at this time.
0 commit comments