Skip to content

Commit e2f37bd

Browse files
Merge pull request #5 from CSWorldTelugu/master
Merge dev into master for package release v1.0.0
2 parents eb5813a + 113fa1c commit e2f37bd

File tree

3 files changed

+74
-2
lines changed

3 files changed

+74
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
setup(
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.",

0 commit comments

Comments
 (0)