chore: more testing private repo #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ame: Publish pyQuil (test) | ||
on: | ||
push: | ||
branches: [1759-use-grpc-web] | ||
pull_request: | ||
branches: [1759-use-grpc-web] | ||
jobs: | ||
build-publish: | ||
name: Build and Publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-in-project: true | ||
- name: Patch package metadata for grpc-web | ||
run: | | ||
pip install toml | ||
python scripts/ci_publish_grpc_web.py | ||
- name: Poetry Build | ||
run: | | ||
poetry build --no-interaction | ||
- name: Upload wheels as artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wheels | ||
- name: Mint token for trusted publisher | ||
id: mint | ||
uses: tschm/[email protected] | ||
- name: Publish the package with poetry | ||
run: | | ||
poetry config repositories.test-pypi https://test.pypi.org/legacy/ | ||
poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}' -r test-pypi |