Skip to content

Merge pull request #186 from OpenBMB/vpe #16

Merge pull request #186 from OpenBMB/vpe

Merge pull request #186 from OpenBMB/vpe #16

Workflow file for this run

name: Build and Publish to PyPI
on:
push:
tags:
- "v*.*.*"
jobs:
build-archive-wheel:
uses: OpenBMB/BMTrain/.github/workflows/build_whl.yml@workflow
secrets:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
publish:
needs: build-archive-wheel
runs-on: ubuntu-latest
steps:
- name: Set Up the Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install twine
run: python -m pip install twine
- name: Download distribution files
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
cd dist
python -m twine upload *.tar.gz *.whl