Skip to content

Commit ba5e341

Browse files
author
Kareem Zidane
committed
Deploy with GitHub Actions
1 parent 1e0f8d0 commit ba5e341

File tree

3 files changed

+24
-42
lines changed

3 files changed

+24
-42
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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: Compile catalog
11+
run: |
12+
pip install babel flask
13+
python -m tests
14+
- name: Install pypa/build
15+
run: python -m pip install build --user
16+
- name: Build a binary wheel and a source tarball
17+
run: python -m build --sdist --wheel --outdir dist/ .
18+
- name: Deploy to PyPI
19+
if: ${{ github.ref == 'refs/heads/main' }}
20+
uses: pypa/gh-action-pypi-publish@release/v1
21+
with:
22+
user: __token__
23+
password: ${{ secrets.PYPI_API_TOKEN }}

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"console_scripts": ["check50=check50.__main__:main"]
3030
},
3131
url="https://github.com/cs50/check50",
32-
version="3.3.1",
32+
version="3.3.2",
3333
include_package_data=True
3434
)

0 commit comments

Comments
 (0)