Skip to content

Commit

Permalink
tidy up cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphilipsmith committed Dec 9, 2024
1 parent 6fc138a commit bebb4da
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,42 +29,13 @@ jobs:
with:
path: dist/*.tar.gz

# build_wheels:
# name: Wheel on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]

# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Set up Rust
# run: rustup update stable && rustup default stable

# # Config options from https://cibuildwheel.pypa.io/en/stable/faq/#building-rust-wheels
# - uses: pypa/[email protected]
# env:
# CIBW_BEFORE_ALL_LINUX: curl -sSf https://sh.rustup.rs | sh -s -- -y
# CIBW_BEFORE_ALL_WINDOWS: rustup target add i686-pc-windows-msvc
# CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH"
# CIBW_BUILD: cp311-* cp312-*

# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# path: wheelhouse/*.whl

upload_release:
# needs: [build_wheels, make_sdist]
needs: [make_sdist]
environment: release
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/download-artifact@v4
Expand All @@ -73,10 +44,8 @@ jobs:
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'release' && github.event.action == 'published'

upload_test:
# needs: [build_wheels, make_sdist]
needs: [make_sdist]
environment: testpypi
permissions:
Expand All @@ -91,6 +60,4 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
# Remember to tell (test-)pypi about this repo before publishing
# Remove this line to publish to PyPI
repository-url: https://test.pypi.org/legacy/

0 comments on commit bebb4da

Please sign in to comment.