Skip to content

Commit c88d405

Browse files
author
Kareem Zidane
committed
Deploy with GitHub Actions
1 parent f0d0aee commit c88d405

File tree

3 files changed

+24
-27
lines changed

3 files changed

+24
-27
lines changed

.github/workflows/main.yml

+23
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: Run tests
11+
run: |
12+
pip install .
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

-26
This file was deleted.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
packages=find_packages(exclude=["tests"]),
2222
scripts=["bin/compare50"],
2323
url="https://github.com/cs50/compare50",
24-
version="1.2.3",
24+
version="1.2.4",
2525
include_package_data=True,
2626
)

0 commit comments

Comments
 (0)