diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 16af02ad..d178b74f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -93,6 +93,7 @@ jobs: needs: [build, test, doc-test, format-test] permissions: + contents: read pages: write # to deploy to Pages id-token: write # to verify the deployment originates from an appropriate source @@ -114,6 +115,18 @@ jobs: - uses: actions/deploy-pages@v4 with: path: doc/build/html + + deploy-pypi: + needs: [deploy-pages] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user build + - run: python -m build --sdist --wheel . +