Skip to content

Commit

Permalink
tweak workflows for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
geo-martino committed Jan 15, 2024
1 parent e41e0d7 commit 9f467a9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ jobs:
title: Test results - Mac 🍎

build:
name: Build package 📦
runs-on: ubuntu-latest
needs: [test_windows, test_linux, test_mac]
steps:
Expand All @@ -124,13 +125,21 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install hatch
- name: Build package
run: |
hatchling build
hatch build
- name: Upload package artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
if-no-files-found: error

deploy:
name: Publish to PyPI 🚀
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
Expand All @@ -140,4 +149,14 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip
python -m pip install hatch
- name: Download package artifacts
uses: actions/download-artifact@v3
with:
name: dist

- name: Publish package
run: |
hatch publish
1 change: 0 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
if: github.ref == 'refs/heads/master'
with:
path: ./docs/_build/html

Expand Down

0 comments on commit 9f467a9

Please sign in to comment.