Skip to content

Commit 68a1d96

Browse files
author
Joachim Jablon
committed
Fix publish action
1 parent 4248bfa commit 68a1d96

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/publish.yml

+10-16
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,8 @@ jobs:
2121
with:
2222
python-version: ${{ matrix.python_version }}
2323

24-
- name: Pip, Pre-commit & Poetry caches
25-
uses: actions/cache@v2
26-
with:
27-
path: |
28-
~/.cache/
29-
key: ${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}-${{ hashFiles('.pre-commit-config.yaml') }}
30-
31-
- name: Install Poetry
32-
run: pip install poetry
33-
34-
- name: Install Dev dependencies
35-
run: poetry install --extras "django sqlalchemy"
24+
- name: Install
25+
run: pip install build
3626

3727
- name: Wait for tests to succeed
3828
uses: fountainhead/action-wait-for-check@v1.0.0
@@ -45,7 +35,11 @@ jobs:
4535
if: steps.wait-for-ci.outputs.conclusion != 'success'
4636
run: exit 1
4737

48-
- name: Publish on PyPI
49-
run: scripts/publish
50-
env:
51-
PYPI_TOKEN: "${{ secrets.PYPI_TOKEN }}"
38+
- name: Build package
39+
run: python -m build
40+
41+
- name: Publish a Python distribution to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
user: __token__
45+
password: "${{ secrets.PYPI_TOKEN }}"

0 commit comments

Comments
 (0)