Skip to content

Commit eb8edbf

Browse files
committed
build: 👷 Added semantic-release
1 parent c2f9ca0 commit eb8edbf

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Semantic Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Python Semantic Release
19+
uses: relekang/python-semantic-release@master
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
pypi_token: ${{ secrets.PYPI_TOKEN }}

megalist_dataflow/setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414

1515
import setuptools
1616

17+
__version__ = "1.0.0"
1718
setuptools.setup(
1819
name='megalist_dataflow',
19-
version='0.1',
20-
author='Alvaro Stivi',
21-
author_email='astivi@google.com',
22-
url='https://cse.googlesource.com/solutions/megalist',
20+
version=__version__,
21+
author='DP6 fork from Google/megalista',
22+
author_email='koopas@dp6.com.br',
23+
url='https://github.com/DP6/marketing-data-sync',
2324
install_requires=['googleads==24.1.0', 'google-api-python-client==1.10.0',
2425
'google-cloud-core==1.3.0', 'google-cloud-bigquery==1.26.0',
2526
'google-cloud-datastore==1.13.1', 'aiohttp==3.6.2'],

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tool.semantic_release]
2+
upload_to_pypi = false
3+
version_variable = [
4+
'megalist_dataflow/setup.py:__version__'
5+
]
6+

0 commit comments

Comments
 (0)