-
-
Notifications
You must be signed in to change notification settings - Fork 485
29 lines (27 loc) · 691 Bytes
/
deploy.yml
File metadata and controls
29 lines (27 loc) · 691 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
name: "Deploy to pypi"
on:
release:
types: [ published ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install Python dependencies
run: |
python -m pip install -U pip
pip install pipenv
pipenv install --dev
pip install build
- name: Build dist
run: |
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}