Skip to content

Commit 6423d4d

Browse files
committed
Move PyPi release to GitHub action
1 parent e984e52 commit 6423d4d

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PyPi Release
2+
3+
on: [release]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-python@v1
12+
- name: Install Python dependencies
13+
run: python -m pip install --upgrade pip setuptools wheel twine
14+
- uses: actions/setup-node@v1
15+
- name: Install Node dependencies
16+
run: npm install --only=dev
17+
- name: Minify JavaScript files
18+
run: npm run-script minify
19+
- name: Build dist packages
20+
run: python setup.py sdist bdist_wheel
21+
- name: Upload packages
22+
run: python -m twine upload dist/*
23+
env:
24+
TWINE_USERNAME: __token__
25+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

.travis.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,3 @@ jobs:
3535
include:
3636
- python: "3.7"
3737
env: TOXENV=docs
38-
- stage: deploy
39-
if: tag IS present
40-
python: "3.7"
41-
install: skip
42-
script: skip
43-
after_success: true
44-
deploy:
45-
provider: pypi
46-
user: codingjoe
47-
distributions: sdist bdist_wheel
48-
on:
49-
tags: true
50-
password:
51-
secure: "lxm/SwPL1DC9BNIkDsx5NENx/tsHTG2fVRqZtm50enSyDzZVWwJaks+v4++yMGKD353PNCYUKOvbypwTcDtCMcXaGE01tANoy9Z2FvmRE3FRkPTv+cDJ6oGTwqF5gIug1Y1TZvysg/0a0qEZew2ZlyV1Dm2BECS/5q/9YBBX4Ca7RsRkaJb60CG/bfLZHEIp2ejA2uF5LEZ44UFP86Mfr6BtVzT8FM0gBryKMyd4uN/wPzya8vO5jLhBHb7g/hRZkES9dsaIzTqg5nqTGGEL9qYFzO/1JcegI0o0djOpKkftCKryppXRqouhZVIEzcRvjYUMtIPbLvDGnNIqzacQANQoDHoyhMxUV6puh5+O8FR2+bEA9oYTjTfu2xtzv9AU8eRIvqKhbtbTf4ZSjwCcQ7u8eCox8TXO/xLto5oEyKLTCcfpSD+8JjvYANSMzCnRqmtUUCFVLEUJT7knM7jX+02o3w+PJ9dtLkGykgqNPt31v9/jWJHyRKee3iz1rK74KqLW7GFTl+Rcjk7m+4o3jVDOUIRitd1qcX6CuUxixfS6pjchvoWJ44XwfUl3w04RPoVUfTuu453JjQQGSQ6RrrfaTwJ1R3XepaM5eFRJYyEwvS/t5tLH1/oJnkbptgyUSCLw+1MJZi1Tmer08RU5598koXwYflySt6AAQdGFpwg="

0 commit comments

Comments
 (0)