-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 947 Bytes
/
pypi.yaml
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
33
34
35
36
37
38
name: Upload to PyPi
on:
release:
types:
- published
jobs:
upload:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Dependencies
run: |
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
pip3 install pipenv twine
pipenv install --dev
- name: Upload Wheel
run: |
pipenv run python setup.py bdist_wheel sdist
twine upload \
--repository ${{ secrets.TWINE_REPOSITORY }} \
--non-interactive \
--skip-existing \
--verbose \
dist/*
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_REPOSITORY: ${{ secrets.TWINE_REPOSITORY }}