Skip to content

Commit 818c546

Browse files
author
Kareem Zidane
committedJul 16, 2021
Deploy with GitHub Actions
1 parent c37e49a commit 818c546

File tree

3 files changed

+26
-32
lines changed

3 files changed

+26
-32
lines changed
 

‎.github/workflows/main.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on: push
2+
jobs:
3+
test-and-deploy:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: actions/checkout@v2
7+
- uses: actions/setup-python@v2
8+
with:
9+
python-version: '3.6'
10+
- name: Run tests
11+
run: |
12+
pip install babel
13+
pip install .
14+
submit50 --help
15+
python setup.py compile_catalog
16+
- name: Install pypa/build
17+
run: python -m pip install build --user
18+
- name: Build a binary wheel and a source tarball
19+
run: python -m build --sdist --wheel --outdir dist/ .
20+
- name: Deploy to PyPI
21+
if: ${{ github.ref == 'refs/heads/main' }}
22+
uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
user: __token__
25+
password: ${{ secrets.PYPI_API_TOKEN }}

‎.travis.yml

-31
This file was deleted.

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
entry_points={
2626
"console_scripts": ["submit50=submit50.__main__:main"]
2727
},
28-
version="3.0.3",
28+
version="3.0.4",
2929
include_package_data=True
3030
)

0 commit comments

Comments
 (0)
Please sign in to comment.