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 1e0f8d0 commit ba5e341
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 42 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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: Compile catalog
run: |
pip install babel flask
python -m tests
- 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 }}
41 changes: 0 additions & 41 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 @@ -29,6 +29,6 @@
"console_scripts": ["check50=check50.__main__:main"]
},
url="https://github.com/cs50/check50",
version="3.3.1",
version="3.3.2",
include_package_data=True
)

0 comments on commit ba5e341

Please sign in to comment.