diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 84af453..2e14c44 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,4 +37,26 @@ jobs: uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main with: covjsonkit: ecmwf/covjsonkit@${{ github.event.pull_request.head.sha || github.sha }} - secrets: inherit \ No newline at end of file + secrets: inherit + + deploy: + if: ${{ github.event_name == 'release' }} + name: Upload to Pypi + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + python setup.py sdist + twine upload dist/* \ No newline at end of file diff --git a/covjsonkit/version.py b/covjsonkit/version.py index b2f0155..6e2648a 100644 --- a/covjsonkit/version.py +++ b/covjsonkit/version.py @@ -1 +1 @@ -__version__ = "0.0.11" +__version__ = "0.0.12"