Skip to content

Commit 67528f4

Browse files
authored
Merge pull request #2 from icecraft/feat/update_package_method
feat: manual maintain version information
2 parents 7dab47d + e2a7d88 commit 67528f4

File tree

2 files changed

+1
-46
lines changed

2 files changed

+1
-46
lines changed

.github/workflows/python-package.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,8 @@ on:
99
- '*released'
1010
workflow_dispatch:
1111

12-
1312
jobs:
14-
15-
update-version:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Checkout repository
19-
uses: actions/checkout@v4
20-
with:
21-
ref: main
22-
fetch-depth: 0
23-
24-
- name: Set up Python
25-
uses: actions/setup-python@v5
26-
with:
27-
python-version: "3.10"
28-
29-
- name: Update version.py
30-
run: |
31-
python update_version.py
32-
33-
- name: Verify version.py
34-
run: |
35-
ls -l magic_doc/libs/version.py
36-
cat magic_doc/libs/version.py
37-
38-
- name: Commit changes
39-
run: |
40-
git config --local user.email "[email protected]"
41-
git config --local user.name "myhloli"
42-
git add magic_doc/libs/version.py
43-
if git diff-index --quiet HEAD; then
44-
echo "No changes to commit"
45-
else
46-
git commit -m "Update version.py with new version"
47-
fi
48-
id: commit_changes
49-
50-
- name: Push changes
51-
if: steps.commit_changes.outcome == 'success'
52-
env:
53-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
54-
run: |
55-
git push origin HEAD:main
56-
5713
build:
58-
needs: [ update-version ]
5914
runs-on: ubuntu-latest
6015
strategy:
6116
fail-fast: false

magic_doc/libs/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.38"
1+
__version__ = "0.1.41"

0 commit comments

Comments
 (0)