diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a24a7ad..1f49c2b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -53,11 +53,20 @@ jobs: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y source $HOME/.cargo/env pip install setuptools-rust + python setup.py sdist CIBW_ENVIRONMENT: | PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH" CARGO_NET_GIT_FETCH_WITH_CLI=true run: cibuildwheel --output-dir dist + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: artifacts-${{ matrix.os }} + path: | + dist/*.whl + dist/*.tar.gz + - name: Upload wheel artifacts uses: actions/upload-artifact@v3 with: @@ -66,20 +75,21 @@ jobs: publish-wheels: needs: publish-python - name: Publish Python wheels + name: Publish Python wheels and sdist timeout-minutes: 10 runs-on: ubuntu-latest steps: - - name: Download all wheels + - name: Download all artifacts uses: actions/download-artifact@v3 with: path: dist - - name: Move wheels to dist directory + - name: Move artifacts to dist directory run: | mkdir -p final_dist find dist -name "*.whl" -exec mv {} final_dist/ \; + find dist -name "*.tar.gz" -exec mv {} final_dist/ \; - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/Cargo.toml b/Cargo.toml index 8192eba..f010aca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ resolver = "2" [workspace.package] -version = "0.2.3" +version = "0.2.33" authors = ["Wesley Maa ", "Pawel Budzianowski ", "Benjamin Bolte "] edition = "2021" description = "Actuator package"