-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 726 Bytes
/
main.yml
File metadata and controls
30 lines (26 loc) · 726 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
name: Publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.x
architecture: x64
- name: Install setuptools
run: python -m pip install setuptools
- name: Install build
run: python -m pip install --upgrade build
- name: Build a source distribution
run: python -m build
- name: Publish to prod PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}