diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04d5339c..d0b8f1f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: dist - path: dist/ + path: packages/${{ needs.determine-package.outputs.package }}/dist/ publish: name: Publish to PyPI @@ -50,6 +50,8 @@ jobs: name: dist path: dist/ - uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ docs: name: Publish docs @@ -81,3 +83,30 @@ jobs: with: branch: gh-pages folder: gh-pages-site + - uses: actions/upload-artifact@v4 + with: + name: docs_html + path: packages/${{ needs.determine-package.outputs.package }}/html + + assets: + name: Upload docs + needs: [docs, determine-package] + runs-on: ubuntu-24.04 + permissions: + contents: write + steps: + - uses: actions/download-artifact@v4 + with: + name: docs_html + path: docs_html + - name: Zip documentation + run: | + PACKAGE=${{ needs.determine-package.outputs.package }} + VERSION=${{ needs.determine-package.outputs.version }} + mv docs_html documentation-${PACKAGE}-${VERSION} + zip -r documentation-${PACKAGE}-${VERSION}.zip documentation-${PACKAGE}-${VERSION} + - name: Upload release assets + uses: svenstaro/upload-release-action@v2 + with: + file: ./documentation-${{ needs.determine-package.outputs.package }}-${{ needs.determine-package.outputs.version }}.zip + overwrite: false