-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 818 Bytes
/
Copy pathpublish.yml
File metadata and controls
33 lines (29 loc) · 818 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 Artifacts
# TODO: Update this workflow to only run when
# a tag has been created.
on:
push:
tags:
- '\d+\.\d+\.\d+' # Tags like 1.0.0, 1.0.0, etc.
permissions:
id-token: write
contents: read
jobs:
pypi-publish:
name: Upload Release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: pypi
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install build
- name: Build package
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1