Skip to content

Commit 63d9b89

Browse files
authored
publish on push to main (#112)
* publish on push to main * fetch full git history with all tags * no local version
1 parent f675dae commit 63d9b89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: release
22

33
on:
4-
pull_request:
5-
types: [closed]
4+
push:
65
branches:
76
- main
87

9-
push:
108
tags:
119
- 'v**'
1210

@@ -25,11 +23,12 @@ concurrency:
2523

2624
jobs:
2725
build-and-publish:
28-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2926
runs-on: ubuntu-latest
3027

3128
steps:
3229
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0 # fetch full git history with all tags
3332

3433
- uses: actions/setup-python@v5
3534
with:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ diffsynth_engine = [
5959
]
6060

6161
[tool.setuptools_scm]
62+
local_scheme = "no-local-version"
6263

6364
[tool.ruff]
6465
# Exclude a variety of commonly ignored directories.

0 commit comments

Comments
 (0)