diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4a39a02 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +# ============================================================== +# CD with GitHub Actions +# ============================================================== + +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 + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USER }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + python -m twine upload dist/*.tar.gz diff --git a/sierras/__init__.py b/sierras/__init__.py index 7b87c1e..f5acb42 100644 --- a/sierras/__init__.py +++ b/sierras/__init__.py @@ -37,7 +37,7 @@ __author__ = "Francisco Fernandez" __email__ = "fernandezfrancisco2195@gmail.com" -__version__ = "0.1.1" +__version__ = "0.1.2" # ============================================================================