Skip to content

Commit

Permalink
Merge pull request #72 from vsoch/add/pypi-release-workflow
Browse files Browse the repository at this point in the history
add workflow to release to pypi
  • Loading branch information
vsoch committed Jan 25, 2024
2 parents 2b9208a + d21f9bd commit 2dca77e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
@@ -0,0 +1,32 @@
name: Release Python Package

on:
workflow_dispatch:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install
run: conda create --quiet --name scif twine

- name: Install dependencies
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate scif
pip install -e .
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate scif
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 2dca77e

Please sign in to comment.