Skip to content

Commit

Permalink
Update publish-release.yml
Browse files Browse the repository at this point in the history
Update to use pipenv
  • Loading branch information
TKIPisalegacycipher authored Jul 16, 2024
1 parent 4d7f1f3 commit f3f5bb4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up pipenv
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashfiles('**/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install wheel
pip install pipenv
pipenv install build
pipenv install wheel
- name: Build a binary wheel and a source tarball
run: |
python setup.py sdist bdist_wheel
pipenv run python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit f3f5bb4

Please sign in to comment.