Skip to content

Commit

Permalink
clean up github actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Jan 12, 2024
1 parent 225fb50 commit 39d635e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Clean up build artifacts
run: |
rm -rf dist
- name: Setup python
uses: actions/setup-python@v4
with:
Expand All @@ -36,22 +32,10 @@ jobs:
pip install --upgrade pip
pip install -e .
- name: Build wheel
run: |
pip install setuptools
pip install wheel
python setup.py bdist_wheel
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.os }}-${{ matrix.python }}
path: dist

deploy:
runs-on: ubuntu-latest
needs: develop-matrix
# if: github.event_name == 'release' # && github.event.action == 'created'
if: github.event_name == 'release'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -66,15 +50,11 @@ jobs:
pip install --upgrade pip
pip install twine
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true

- name: Inspect dist files
- name: Build wheel
run: |
ls -R dist
pip install setuptools
pip install wheel
python setup.py sdist bdist_wheel
- name: Upload to PyPI using twine
run: |
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ current_version = 0.9.6

[upload_docs]
upload-dir = doc/build/html

[medatdata]
description-file = README.md

0 comments on commit 39d635e

Please sign in to comment.