Skip to content

Commit

Permalink
Merge pull request #77 from cta-observatory/deploy
Browse files Browse the repository at this point in the history
Add github CI config to deploy to PyPI
  • Loading branch information
maxnoe authored Mar 4, 2021
2 parents 538b2bc + 95cce25 commit e1e3bef
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
tags:
- 'v*'

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# make sure we have version info
- run: git fetch --tags

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python --version
pip install -U pip setuptools wheel setuptools_scm[toml]
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ include README.rst
include setup.cfg

prune ctapipe_io_lst/_dev_version
prune .github
exclude .gitignore
exclude .codacy.yml

global-exclude *.pyc *.o

0 comments on commit e1e3bef

Please sign in to comment.