Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try again to fix pypi upload #825

Merged
merged 13 commits into from
Sep 11, 2024
Merged
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
- run: python -m cibuildwheel --output-dir dist
- uses: actions/[email protected]
with:
name: "dist-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}"
name: "dist-stim-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}"
path: dist/*
build_sdist:
runs-on: ubuntu-latest
Expand All @@ -173,15 +173,15 @@ jobs:
- run: cd glue/sample && python setup.py sdist
- uses: actions/[email protected]
with:
name: "dist-sdist-sinter"
name: "dist-sinter"
path: glue/sample/dist/*.tar.gz
- uses: actions/[email protected]
with:
name: "dist-sdist-stimcirq"
name: "dist-stimcirq"
path: glue/cirq/dist/*.tar.gz
- uses: actions/[email protected]
with:
name: "dist-sdist-stim"
name: "dist-stim-sdist"
path: dist/*.tar.gz
check_sdist_installs:
runs-on: ubuntu-latest
Expand All @@ -198,31 +198,39 @@ jobs:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: dist
pattern: dist-*
name: dist-stim
pattern: dist-stim-*
upload_dev_release_to_pypi:
needs: ["merge_upload_artifacts"]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: dist
path: dist
name: dist-stim
path: dist-stim
- uses: actions/[email protected]
with:
name: dist-stimcirq
path: dist-stimcirq
- uses: actions/[email protected]
with:
name: dist-sinter
path: dist-sinter
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
packages_dir: dist/stim/
packages_dir: dist-stim
password: ${{ secrets.pypi_token_stim }}
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
packages_dir: dist/stimcirq/
packages_dir: dist-stimcirq
password: ${{ secrets.pypi_token_stimcirq }}
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
packages_dir: dist/sinter/
packages_dir: dist-sinter
password: ${{ secrets.pypi_token_sinter }}
run_main:
runs-on: ubuntu-latest
Expand Down
Loading