Skip to content

Merge pull request #291 from cta-observatory/prepare_0.12 #16

Merge pull request #291 from cta-observatory/prepare_0.12

Merge pull request #291 from cta-observatory/prepare_0.12 #16

Workflow file for this run

name: Deploy to PyPi
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python --version
pip install -U pip setuptools wheel setuptools_scm[toml]
# make sure we have the version, grep will exit with 1 if it finds 0.0.0
python setup.py --version | grep -v '0.0.0'
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}