Skip to content

Commit

Permalink
Deploy with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kareem Zidane committed Jul 16, 2021
1 parent c37e49a commit 818c546
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 32 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: push
jobs:
test-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Run tests
run: |
pip install babel
pip install .
submit50 --help
python setup.py compile_catalog
- name: Install pypa/build
run: python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Deploy to PyPI
if: ${{ github.ref == 'refs/heads/main' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
entry_points={
"console_scripts": ["submit50=submit50.__main__:main"]
},
version="3.0.3",
version="3.0.4",
include_package_data=True
)

0 comments on commit 818c546

Please sign in to comment.