File tree Expand file tree Collapse file tree 3 files changed +74
-2
lines changed
Expand file tree Collapse file tree 3 files changed +74
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ permissions :
9+ contents : write
10+ id-token : write
11+ actions : write
12+ packages : write
13+
14+ jobs :
15+ release :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout master branch
19+ uses : actions/checkout@v4
20+ with :
21+ ref : master
22+ fetch-depth : 0
23+
24+ - name : Create and push to main
25+ run : |
26+ git checkout -b main
27+ git push origin main
28+
29+ - name : Checkout release branch
30+ run : git checkout main
31+
32+ - name : Set up Python
33+ uses : actions/setup-python@v3
34+ with :
35+ python-version : ' 3.x'
36+
37+ - name : Install dependencies
38+ run : |
39+ python -m pip install --upgrade pip
40+ pip install build twine python-semantic-release setuptools-scm
41+
42+ - name : Run semantic-release
43+ env :
44+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ run : |
46+ git config user.name github-actions
47+ git config user.email github-actions@github.com
48+ semantic-release version
49+ semantic-release publish
50+
51+ - name : Build package
52+ run : python -m build
53+
54+ - name : Publish package to PyPI
55+ env :
56+ TWINE_USERNAME : __token__
57+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
58+ run : twine upload dist/*
59+
60+ - name : Raise PR from main to master
61+ uses : peter-evans/create-pull-request@v5
62+ with :
63+ base : master
64+ head : main
65+ title : ' Release PR: main -> master'
66+ body : ' This PR merges the changes from the main branch back into master after the release.'
67+ branch : pr-main-to-master
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ A developer-friendly Python library for interacting with FileMaker Server via th
1010- [ Features] ( #features )
1111- [ How to Install] ( #how-to-install )
1212- [ How to Use] ( #how-to-use )
13- - [ API Structure Overview ] ( #api-structure )
13+ - [ API Structure] ( #api-structure )
1414- [ Contributing] ( #contributing )
1515- [ License] ( #license )
1616
Original file line number Diff line number Diff line change 88
99setup (
1010 name = "python-fm-dapi-weaver" ,
11- version = "0.1.0" ,
11+ # version="0.1.0",
12+ use_scm_version = {"local_scheme" : "no-local-version" },
13+ setup_requires = [
14+ "setuptools>=42" ,
15+ "setuptools-scm" ,
16+ ],
1217 author = "Mindfire Digital LLP" ,
1318 author_email = "swathim@mindfiresolutions.com" ,
1419 description = "A Python wrapper for seamless communication with FileMaker dababases." ,
You can’t perform that action at this time.
0 commit comments