Skip to content

Commit

Permalink
autopublish when released using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Feb 10, 2021
1 parent 2459e3a commit 0fd6861
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 7 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine toml
- 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/*
32 changes: 26 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
# PyMoDAQ Plugins
pymodaq_plugins_newport (Newport Instruments)
#############################################

PyMoDAQ, Modular Data Acquisition with Python, is a set of **python** modules used to perform automated measurements.
.. image:: https://img.shields.io/pypi/v/pymodaq_plugins_newport.svg
:target: https://pypi.org/project/pymodaq_plugins_newport/
:alt: Latest Version

This repository contains various hardware plugins compatible with PyMoDAQ
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
:target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
:alt: Documentation Status

For an exhaustive list of the available plugins, see https://docs.google.com/spreadsheets/d/1wfMfvLwTitZd2R2m1O5i6wVEaX1lJBahP2HUbxVdidg
.. image:: https://github.com/CEMES-CNRS/pymodaq_plugins_newport/workflows/Upload%20Python%20Package/badge.svg
:target: https://github.com/CEMES-CNRS/pymodaq_plugins_newport

GitHub repo: https://github.com/CEMES-CNRS
PyMoDAQ plugin for instruments from Newport (Conex, ESP100,...)

Documentation: http://pymodaq.cnrs.fr/

Authors
=======

* Sebastien J. Weber

Instruments
===========
Below is the list of instruments included in this plugin

Actuators
+++++++++

* **Conex**: Piezo actuators from the CONEX-AGAP series"
* **Newport_ESP100**: ESP100 motion controllers
2 changes: 1 addition & 1 deletion pymodaq_plugins_newport/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from os.path import abspath, dirname


VERSION = (0, 0, 2, 'final', 0)
VERSION = (0, 0, 3, 'final', 0)



Expand Down

0 comments on commit 0fd6861

Please sign in to comment.