File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*' # Trigger on version tags like v1.0.0
7+ release :
8+ types : [published] # Also trigger on GitHub releases
9+ workflow_dispatch : # Allow manual triggering
10+
11+ jobs :
12+ build-and-publish :
13+ runs-on : ubuntu-latest
14+
15+ environment :
16+ name : pypi
17+ url : https://pypi.org/project/feedly-client/
18+
19+ permissions :
20+ id-token : write # IMPORTANT: OIDC token generation
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v4
27+ with :
28+ python-version : ' 3.9'
29+
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install build
34+
35+ - name : Build package
36+ run : python -m build
37+
38+ - name : Publish to PyPI
39+ uses : pypa/gh-action-pypi-publish@release/v1
40+
You can’t perform that action at this time.
0 commit comments