Skip to content

Commit 8f7bb46

Browse files
committed
[misc] Add deploy action
1 parent 0d2872f commit 8f7bb46

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Workflow for deploying RepoBee to PyPi
2+
3+
name: deploy
4+
5+
on:
6+
release:
7+
types: published
8+
9+
jobs:
10+
deploy-to-pypi:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.6
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.6
18+
- name: Package RepoBee
19+
run: |
20+
python -m pip install --upgrade pip wheel
21+
python -m pip install -r requirements.txt
22+
python -m pip install .
23+
python setup.py sdist bdist_wheel
24+
- name: Publish RepoBee to PyPi
25+
uses: pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806 # v1.4.1
26+
with:
27+
user: __token__
28+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)