test on push #8
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: Upload to PyPI | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
tag: | |
required: true | |
description: Tag to release to pypi | |
jobs: | |
Upload-Library-to-PyPI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: To build the dist archives into the dist/ directory, first install build | |
run: | | |
python3 -m pip install --upgrade build | |
- name: Then install twine | |
run: | | |
python3 -m pip install --upgrade twine | |
- name: List files in the repository to check you have the .toml file | |
run: | | |
ls ${{ github.workspace }} | |
- name: Use `python3 -m build` to build the dist archives run, You will see the `dist/` folder appear in the main directory of your repository | |
run: | | |
python3 -m build | |
- name: Use `python3 -m twine upload dist/*` to upload the archives to PyPI. | |
run: | | |
python3 -m twine upload dist/* | |