Merge pull request #186 from OpenBMB/vpe #16
Workflow file for this run
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: 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 |