Skip to content

Commit 5df3596

Browse files
committed
modify CI to deploy pypi package
1 parent d593ddd commit 5df3596

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/build_and_test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
steps:
3535
- name: Check out repository code
3636
uses: actions/checkout@v2
37+
uses: actions/setup-python@v2
3738
- uses: dorny/paths-filter@v2
3839
id: changes
3940
with:
@@ -42,9 +43,9 @@ jobs:
4243
- 'fluidfoam/_version.py'
4344
- name: Deploy package
4445
if: steps.changes.outputs.src == 'true'
45-
uses: remorses/pypi@master
46+
uses: casperdcl/deploy-pypi@v2
4647
with:
47-
setup_file: ./setup.py
48-
username: ${{ secrets.pypi_username }}
49-
password: ${{ secrets.pypi_password }}
50-
48+
password: ${{ secrets.PYPI_TOKEN }}
49+
pip: wheel -w dist/ --no-deps .
50+
# only upload if a tag is pushed (otherwise just build & check)
51+
# upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}

fluidfoam/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
'a' or 'alpha' means alpha version (internal testing),
1212
'b' or 'beta' means beta version (external testing).
1313
"""
14-
__version__ = "0.2.2"
14+
__version__ = "0.2.3"

0 commit comments

Comments
 (0)