Skip to content

Commit efe8464

Browse files
feature: env setup on workflow
1 parent 77558e2 commit efe8464

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/workflows/CD.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ jobs:
3232
env:
3333
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
3434
run: poetry publish --username __token__ --password $POETRY_PYPI_TOKEN_PYPI
35+
36+
environment:
37+
name: Production
38+
url: https://pypi.org/project/api-to-dataframe/

.github/workflows/CI.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,15 @@ jobs:
7070
git push
7171
git tag -f $(poetry version -s)
7272
git push -f origin --tags
73+
74+
- name: Build package
75+
run: poetry build
76+
77+
- name: Publish package to TestPyPI
78+
env:
79+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.TEST_PYPI_TOKEN }}
80+
run: poetry publish -r test-pypi -u __token__ --password $POETRY_PYPI_TOKEN_PYPI
81+
82+
environment:
83+
name: Development
84+
url: https://test.pypi.org/project/api-to-dataframe/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "api-to-dataframe"
3-
version = "1.3.3"
3+
version = "1.3.4"
44
description = "A package to convert API responses to pandas dataframe"
55
authors = ["IvanildoBarauna <ivanildo.jnr@outlook.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)