Skip to content

Flux Metrics API v0.0.11-zenodo #3

Flux Metrics API v0.0.11-zenodo

Flux Metrics API v0.0.11-zenodo #3

Workflow file for this run

name: release flux-metrics-api
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: conda create --quiet --name flux twine
- name: Install dependencies
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate flux
pip install -e .[all]
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 flux
python setup.py sdist bdist_wheel
twine upload dist/*