-
Notifications
You must be signed in to change notification settings - Fork 61
29 lines (27 loc) · 823 Bytes
/
Copy pathrelease.yml
File metadata and controls
29 lines (27 loc) · 823 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: Release to PyPI
on:
release:
types: [published]
jobs:
build-and-publish:
name: Build and Publish
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e
with:
ref: ${{ github.event.release.tag_name }}
persist-credentials: false
- name: Install Python
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e
- name: Install build dependencies
run: python -m pip install -U setuptools build wheel
- name: Build distributions
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}