File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 package to GitHub
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *'
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-and-upload :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.10'
20+
21+ - name : Install build tools
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install build
25+
26+ - name : Build package
27+ run : python -m build
28+
29+ - name : Create Release and Upload Artifacts
30+ uses : softprops/action-gh-release@v2
31+ with :
32+ files : dist/*
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Publish Python 🐍 package to PyPI
33on :
44 push :
55 branches :
6- - ' dev '
6+ - ' none '
77
88
99jobs :
You can’t perform that action at this time.
0 commit comments