Skip to content

Commit 0f9025e

Browse files
authored
Merge pull request #12 from togethercomputer/upload-pypi-actions
github actions for uploading to pypi
2 parents 71302b1 + 840d3ee commit 0f9025e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/upload-to-pypi.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload to PyPI
2+
run-name: ${{ github.actor }} is uploading a new release of together python library client to PyPI 🚀
3+
on: [push]
4+
jobs:
5+
Upload-Library-to-PyPI:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out repository code
9+
uses: actions/checkout
10+
- name: To build the dist archives into the dist/ directory, first install build
11+
run: |
12+
python3 -m pip install --upgrade build
13+
- name: Then install twine
14+
run: |
15+
python3 -m pip install --upgrade twine
16+
- name: List files in the repository to check you have the .toml file
17+
run: |
18+
ls ${{ github.workspace }}
19+
- name: Use `python3 -m build` to build the dist archives run
20+
run: |
21+
python3 -m build
22+
- name: You will see the `dist/` folder appear in the main directory of your repository
23+
- name: Use `python3 -m twine upload dist/*` to upload the archives to PyPI.
24+
run: |
25+
python3 -m twine upload dist/*
26+

0 commit comments

Comments
 (0)