Skip to content

Commit

Permalink
Try again to fix pypi upload (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc authored Sep 11, 2024
1 parent f3f4876 commit fcb795b
Showing 1 changed file with 19 additions and 11 deletions.
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

0 comments on commit fcb795b

Please sign in to comment.