Skip to content

Commit 43c27a6

Browse files
authored
Merge pull request #5 from pyiron/deploy
Add deployment
2 parents 2115bbb + ab97abb commit 43c27a6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PyPi Release
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
# based on https://github.com/pypa/gh-action-pypi-publish
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.8
17+
18+
- name: Install dependencies
19+
run: >-
20+
python -m pip install --user --upgrade setuptools wheel
21+
- name: Convert dependencies
22+
run: >-
23+
sed -i 's/==/>=/g' setup.py; cat setup.py
24+
- name: Build
25+
run: >-
26+
python setup.py sdist bdist_wheel
27+
- name: Publish distribution 📦 to PyPI
28+
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
29+
uses: pypa/gh-action-pypi-publish@master
30+
with:
31+
user: __token__
32+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)