diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 00b32403..62d2a7b6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: @@ -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' @@ -140,4 +149,14 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip \ No newline at end of file + 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 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index dbe8d17a..f2c8d1b3 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -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