Skip to content

Commit

Permalink
ci: add artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Dec 20, 2023
1 parent 8c7877b commit b5ccd16
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ jobs:
pip install wheel
python setup.py bdist_wheel
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: dist

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

- name: Inspect dist files
run: |
ls -la dist/
ls -la dist
- name: Upload to PyPI using twine
run: |
Expand Down

0 comments on commit b5ccd16

Please sign in to comment.