Skip to content

Commit 138befa

Browse files
committed
fix:update publish workflow
1 parent a3d95fc commit 138befa

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ name: Upload Python Package
1010

1111
on:
1212
release:
13-
types: [published]
13+
types: [ published ]
1414
workflow_dispatch:
1515

1616

1717
jobs:
1818
deploy:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
22-
- name: Set up Python
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version: '3.11'
26-
cache-dependency-path: requirements.txt
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install build
31-
- name: Build package
32-
run: python -m build
33-
- name: Publish package
34-
uses: pypa/gh-action-pypi-publish@v1.8.11
35-
with:
36-
user: __token__
37-
password: ${{ secrets.PYPI_API_TOKEN }}
21+
- uses: actions/checkout@v4
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.11'
26+
cache: 'poetry'
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install build
32+
33+
- name: Build package
34+
run: python -m build
35+
36+
- name: Publish package
37+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)