File tree Expand file tree Collapse file tree 2 files changed +40
-31
lines changed
Expand file tree Collapse file tree 2 files changed +40
-31
lines changed Original file line number Diff line number Diff line change 1+ name : Build and publish python package
2+
3+ on :
4+ release :
5+ types : [ published ]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ pypi-publish :
12+ name : Upload release to PyPI
13+ runs-on : ubuntu-latest
14+ environment :
15+ name : pypi
16+ url : https://pypi.org/project/hough/
17+ permissions :
18+ id-token : write
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+ with :
23+ persist-credentials : false
24+ - name : Set up Python
25+ uses : actions/setup-python@v5
26+ with :
27+ python-version : " 3.x"
28+ - name : Install Poetry
29+ run : |
30+ curl -sSL https://install.python-poetry.org | python - -y
31+ - name : Update PATH
32+ run : echo "$HOME/.local/bin" >> $GITHUB_PATH
33+ - name : Update Poetry configuration
34+ run : poetry config virtualenvs.create false
35+ - name : Install dependencies
36+ run : poetry sync --no-interaction
37+ - name : Package project
38+ run : poetry build
39+ - name : Publish package distributions to PyPI
40+ uses : pypa/gh-action-pypi-publish@release/v1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments