Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit b7c25d1

Browse files
committed
Create: CD to PyPi
1 parent 7e30a13 commit b7c25d1

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

‎.github/workflows/pypi_cd.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup UV
19+
uses: astral-sh/setup-uv@v7
20+
21+
- name: Build Distributions
22+
run: uv build
23+
24+
- name: Upload Distribution Artifacts
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: python-dist
28+
path: dist
29+
30+
publish-pypi:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
permissions:
34+
id-token: write
35+
environment:
36+
name: pypi
37+
url: https://pypi.org/project/django-tasks-cloud
38+
39+
steps:
40+
- name: Download Distribution Artifacts
41+
uses: actions/download-artifact@v4
42+
with:
43+
name: python-dist
44+
path: dist
45+
46+
- name: Publish to PyPI
47+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)