Skip to content

Commit 783535a

Browse files
committed
Release via GH actions
1 parent 59f3af5 commit 783535a

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
packages:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.6
18+
19+
- name: Get tags
20+
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
21+
shell: bash
22+
23+
- name: build
24+
run: |
25+
python -m pip install wheel twine
26+
python -m pip install -r requirements.txt
27+
python setup.py sdist
28+
pip wheel . -w dist --no-deps
29+
30+
- name: Check files
31+
run: |
32+
ls dist
33+
shell: bash
34+
35+
- name: Test wheels
36+
run: |
37+
python -m twine check dist/*
38+
shell: bash
39+
40+
- name: Publish a Python distribution to PyPI
41+
uses: pypa/gh-action-pypi-publish@master
42+
with:
43+
user: __token__
44+
password: ${{ secrets.PYPI_PASSWORD }}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ script:
3838
fi
3939
4040
cp examples/Quickstart.ipynb docs/quickstart.ipynb
41-
pushd docs && make clean html linkcheck && popd
41+
pushd docs && make clean html linkcheck && popd

0 commit comments

Comments
 (0)