Skip to content

Commit 383460d

Browse files
author
Jonathan Crum
committed
Testing PyPI deployment actions
1 parent 4f8966b commit 383460d

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/release.yml

+24-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
name: Release
22
on:
3-
push:
4-
branches:
5-
- master
3+
release:
4+
types:
5+
- published
66
jobs:
7-
deployment:
8-
runs-on: ubuntu-latest
9-
environment: production
7+
deployment:
8+
name: upload release to PyPI
9+
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
id-token: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.x"
19+
20+
- name: deps
21+
run: poetry install
22+
23+
- name: build
24+
run: python -m build --sdist --wheel .
25+
26+
- name: Publish package distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@releast/v1

0 commit comments

Comments
 (0)