Skip to content

Commit

Permalink
Merge pull request #12 from togethercomputer/upload-pypi-actions
Browse files Browse the repository at this point in the history
github actions for uploading to pypi
  • Loading branch information
clam004 authored Aug 11, 2023
2 parents 71302b1 + 840d3ee commit 0f9025e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/upload-to-pypi.yml
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/*

0 comments on commit 0f9025e

Please sign in to comment.