Skip to content

Commit dd52622

Browse files
committed
Get github actions to publish releases to pypi
1 parent 0fe34cb commit dd52622

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

.github/workflows/build.yml renamed to .github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,25 @@ jobs:
143143
run: pipx run build
144144
- name: Check build artifacts
145145
run: pipx run twine check --strict dist/*
146+
- name: Save artifacts
147+
uses: actions/upload-artifact@v3
148+
with:
149+
name: python-can-dist
150+
path: ./dist
151+
152+
upload_pypi:
153+
needs: [build]
154+
runs-on: ubuntu-latest
155+
156+
# upload to PyPI only on release
157+
if: github.event.release && github.event.action == 'published'
158+
steps:
159+
- uses: actions/download-artifact@v3
160+
with:
161+
name: python-can-dist
162+
path: dist
163+
164+
- uses: pypa/[email protected]
165+
with:
166+
user: __token__
167+
password: ${{ secrets.PYPI_API_TOKEN }}

.travis.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,3 @@ jobs:
6363
travis_retry sudo pip install tox
6464
# Run the tests
6565
sudo tox -e travis
66-
67-
- stage: documentation
68-
name: "Sphinx Build"
69-
python: "3.9"
70-
before_install:
71-
- travis_retry pip install -r doc/doc-requirements.txt
72-
script:
73-
# Build the docs with Sphinx
74-
# -a Write all files
75-
# -n nitpicky
76-
- python -m sphinx -an doc build
77-
- stage: deploy
78-
name: "PyPi Deployment"
79-
python: "3.9"
80-
deploy:
81-
provider: pypi
82-
distributions: "sdist bdist_wheel"
83-
user: hardbyte
84-
password:
85-
secure: oQ9XpEkcilkZgKp+rKvPb2J1GrZe2ZvtOq/IjzCpiA8NeWixl/ai3BkPrLbd8t1wNIFoGwx7IQ7zxWL79aPYeG6XrljEomv3g45NR6dkQewUH+dQFlnT75Rm96Ycxvme0w1+71vM4PqxIuzyXUrF2n7JjC0XCCxHdTuYmPGbxVO1fOsE5R5b9inAbpEUtJuWz5AIrDEZ0OgoQpLSC8fLwbymTThX3JZ5GBLpRScVvLazjIYfRkZxvCqQ4mp1UNTdoMzekxsvxOOcEW6+j3fQO+Q/8uvMksKP0RgT8HE69oeYOeVic4Q4wGqORw+ur4A56NvBqVKtizVLCzzEG9ZfoSDy7ryvGWGZykkh8HX0PFQAEykC3iYihHK8ZFz5bEqRMegTmuRYZwPsel61wVd5posxnQkGm0syIoJNKuuRc5sUK+E3GviYcT8NntdR+4WBrvpQAYa1ZHpVrfnQXyaDmGzOjwCRGPoIDJweEqGVmLycEC5aT8rX3/W9tie9iPnjmFJh4CwNMxDgVQRo80m6Gtlf/DQpA3mH39IvWGqd5fHdTPxYPs32EQSCsaYLJV5pM8xBNv6M2S/KriGnGZU0xT7MEr46da0LstKsK/U8O0yamjyugMvQoC3zQcKLrDzWFSBsT7/vG+AuV5SK8yzfEHugo7jkPQQ+NTw29xzk4dY=
86-
on:
87-
# Have travis deploy tagged commits to PyPi
88-
tags: true
89-
skip_cleanup: true

requirements-lint.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pylint==2.12.2
2-
black~=22.3.0
3-
mypy==0.931
1+
pylint==2.15.5
2+
black~=22.10.0
3+
mypy==0.991
44
mypy-extensions==0.4.3
55
types-setuptools

0 commit comments

Comments
 (0)