Skip to content

Commit 02a9407

Browse files
committed
Add release workflow
Fixes #1.
1 parent a5ee4eb commit 02a9407

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
release:
3+
types:
4+
- published
5+
6+
name: Release
7+
8+
permissions:
9+
# IMPORTANT: this permission is mandatory for trusted publishing
10+
id-token: write
11+
12+
jobs:
13+
pypi-publish:
14+
name: Upload release to PyPI
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: pypi
18+
url: https://pypi.org/p/devpi-timemachine
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: 3.11
26+
27+
- name: Install pypa/build
28+
run: python -m pip install build --user
29+
30+
- name: Build a binary wheel and a source tarball
31+
run: python -m build --sdist --wheel --outdir dist/
32+
33+
- name: Publish package distributions to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)