From 5d0568bcf2b804bb9ab2ecd4210c56fe7634f42e Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 27 Jan 2021 09:48:34 +0900 Subject: [PATCH] Update pypi publish workflow --- .github/workflows/pypi-publish.yml | 6 +++--- Pipfile | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 8fbdc214..c35beb86 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -32,11 +32,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel - pip install -r requirements.txt + pip install pipenv + pipenv sync --dev - name: collectstatic run: | - python manage.py collectstatic --noinput + pipenv run collectstatic working-directory: ./app - name: Build a binary wheel and a source tarball run: | diff --git a/Pipfile b/Pipfile index 9e887c66..bacbd998 100644 --- a/Pipfile +++ b/Pipfile @@ -52,3 +52,4 @@ isort = "isort . -c" wait_for_db = "python manage.py wait_for_db" test = "python manage.py test api.tests" migrate = "python manage.py migrate" +collectstatic = "python manage.py collectstatic --noinput"