Merge pull request #239 from UC-Davis-molecular-computing/dev #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "release" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release: | |
name: "Release" | |
runs-on: ubuntu-20.04 | |
steps: | |
# ... | |
- name: "Build & test" | |
run: | | |
echo "done!" | |
- uses: "marvinpinto/action-automatic-releases@v1.2.1" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "current" | |
prerelease: false | |
title: "Development Build [TODO: Replace label and number with version number]" | |
files: | | |
LICENSE.txt | |
# Publish to PyPI | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install dependencies | |
run: | | |
pip install setuptools wheel twine | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
python setup.py sdist | |
twine upload dist/* |