Skip to content

Commit ec9d2a3

Browse files
authored
Modify Python version and update PyPI URL
Updated Python version and PyPI project URL in workflow.
1 parent de0ce9f commit ec9d2a3

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
release-build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12" # Apne Python version ke hisab se update kar sakte ho
20+
21+
- name: Build release distributions
22+
run: |
23+
python -m pip install --upgrade build
24+
python -m build
25+
26+
- name: Upload distributions
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: release-dists
30+
path: dist/
31+
32+
pypi-publish:
33+
runs-on: ubuntu-latest
34+
needs:
35+
- release-build
36+
permissions:
37+
id-token: write
38+
39+
environment:
40+
name: pypi
41+
url: https://pypi.org/project/mad-proxy/ # Apne PyPI project URL se replace karna
42+
43+
steps:
44+
- name: Retrieve release distributions
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: release-dists
48+
path: dist/
49+
50+
- name: Publish release distributions to PyPI
51+
uses: pypa/gh-action-pypi-publish@release/v1
52+
with:
53+
packages-dir: dist/
54+
token: ${{ secrets.80b58c36-7077-4cbd-9509-b32244e2336c }}

0 commit comments

Comments
 (0)