Skip to content

Commit 0028866

Browse files
committed
Add publish action
1 parent 01f808c commit 0028866

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Publish to PyPI
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build-and-publish:
7+
runs-on: ubuntu-latest
8+
environment:
9+
name: pypi
10+
url: https://pypi.org/p/django-block-fragments
11+
permissions:
12+
id-token: write
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
- name: Setup Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version-file: "pyproject.toml"
22+
- name: Build wheel and sdist
23+
run: uv build
24+
- name: Publish package distributions to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)