Skip to content

Commit b896c81

Browse files
author
Kareem Zidane
committed
Deploy with GitHub Actions
1 parent 8dc4178 commit b896c81

4 files changed

Lines changed: 25 additions & 30 deletions

File tree

.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: Run tests
11+
run: |
12+
pip install .
13+
style50 --help
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 }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.*
2+
!.github
23
!.gitignore
34
!.travis.yml
45
*.pyc

.travis.yml

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"console_scripts": ["style50=style50.__main__:main"],
2525
},
2626
url="https://github.com/cs50/style50",
27-
version="2.7.4",
27+
version="2.7.5",
2828
include_package_data=True,
2929
)

0 commit comments

Comments
 (0)