Skip to content

Commit

Permalink
Merge pull request #1442 from napalm-automation/develop
Browse files Browse the repository at this point in the history
Merge forward from develop into the master branch
  • Loading branch information
mirceaulinic committed May 10, 2021
2 parents b82aebc + f43f82e commit f8ea101
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Python Package
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ pytest-json==0.4.0
pytest-pythonpath==0.7.3
pylama==7.7.1
mock==4.0.3
tox==3.23.0
tox==3.23.1
mypy==0.812

0 comments on commit f8ea101

Please sign in to comment.