-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from togethercomputer/upload-pypi-actions
github actions for uploading to pypi
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Upload to PyPI | ||
run-name: ${{ github.actor }} is uploading a new release of together python library client to PyPI 🚀 | ||
on: [push] | ||
jobs: | ||
Upload-Library-to-PyPI: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout | ||
- 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 | ||
run: | | ||
python3 -m build | ||
- name: You will see the `dist/` folder appear in the main directory of your repository | ||
- name: Use `python3 -m twine upload dist/*` to upload the archives to PyPI. | ||
run: | | ||
python3 -m twine upload dist/* | ||