Skip to content

Commit 032ac86

Browse files
committed
CI: Enable publish workflow
1 parent f8d2daa commit 032ac86

1 file changed

Lines changed: 22 additions & 24 deletions

File tree

.github/workflows/publish.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Publish to PyPI
22

33
on:
4-
workflow_dispatch:
5-
# Disabled until if/when it becomes open source.
6-
# release:
7-
# types: [published]
4+
release:
5+
types: [published]
86

97
permissions:
108
contents: read
@@ -21,23 +19,23 @@ jobs:
2119
id-token: write
2220

2321
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
26-
with:
27-
fetch-depth: 0
28-
29-
- name: Set up Python 3.11
30-
uses: actions/setup-python@v5
31-
with:
32-
python-version: 3.11
33-
34-
- name: Install build dependencies
35-
run: |
36-
pip install -U pip
37-
pip install build
38-
39-
- name: Build distributions
40-
run: python -m build
41-
42-
- name: Publish package distributions to PyPI
43-
uses: pypa/gh-action-pypi-publish@release/v1
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Set up Python 3.12
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: 3.12
31+
32+
- name: Install build dependencies
33+
run: |
34+
pip install -U pip
35+
pip install build
36+
37+
- name: Build distributions
38+
run: python -m build
39+
40+
- name: Publish package distributions to PyPI
41+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)