forked from webui-dev/python-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 804 Bytes
/
pypi-publish.yml
File metadata and controls
32 lines (27 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish PyPi Package
on:
release:
types: [created]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies and Publish package
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m pip install --upgrade twine
cd PyPI/Package/src/webui
chmod +x bootstrap.sh
./bootstrap.sh
cd ../..
python -m build
python -m twine upload --repository pypi dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}