Skip to content

Commit f2d3f95

Browse files
committed
Merge branch 'main' into dev
2 parents 864538a + 1fc3659 commit f2d3f95

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
19
name: Upload Python Package
210

311
on:
412
release:
513
types: [published]
14+
workflow_dispatch:
15+
16+
permissions:
17+
id-token: write
618

719
jobs:
8-
pypi:
9-
name: "Upload package release"
20+
deploy:
21+
1022
runs-on: ubuntu-latest
1123

1224
steps:
13-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
1426
- name: Set up Python
15-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v5
1628
with:
1729
python-version: '3.x'
1830
- name: Install dependencies
1931
run: |
2032
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine
22-
- name: Build and publish
23-
env:
24-
TWINE_USERNAME: __token__
25-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26-
run: |
27-
python setup.py sdist bdist_wheel
28-
twine upload dist/*
33+
pip install build
34+
- name: Build package
35+
run: python -m build
36+
- name: Publish package
37+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)