Closed wsavran closed 2 years ago
name: Publish pyCSEP
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- 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_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
added with v0.6.0
we should implement a pipeline to help pushing out releases of pyCSEP based on the github action.
tags'. this triggers when a tag is pushed to the repo. the action should do the following:
``python setup.py sdist
assuming the HEAD commit contains all the code changes for the release process would be as follows:
this process should create a tag along with the release on GitHub. this would trigger the CI to push this release to pypi. we want to be publishing releases relatively rapidly, so any extra steps to automate this process would be great.