Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
- Use new build command to create the pip package
- Update the action versions to latest
- Upload the wheel as a artifact for inspection
  • Loading branch information
MHendricks committed Sep 22, 2023
1 parent 18877ad commit ccb30cd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,31 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel twine
python -m pip install --upgrade build setuptools wheel twine
- name: Build wheel
run: |
python setup.py build bdist_wheel
python -m build --wheel
# Upload the built .whl files so we can inspect them even if publish fails
- name: Upload wheel.
uses: actions/upload-artifact@v3
with:
name: built-wheel
path: dist/hab_gui-*.whl
retention-days: 1

- name: Publish to PyPI
env:
Expand Down

0 comments on commit ccb30cd

Please sign in to comment.