Skip to content

Commit

Permalink
Fix pypi deploy for patch releases (pyodide#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Sep 16, 2022
1 parent faa3b8c commit bb9268f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,13 @@ jobs:
name: Deploy to PyPI
command: |
# Ask github actions to deploy for us
export PAYLOAD={"ref":"${CIRCLE_TAG}","inputs":{}}
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GITHUB_TOKEN}" \
https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/dispatches \
-d '{"event_type":"deploy-release","client_payload":{}}'
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/dispatches/deploy-release \
-d "$PAYLOAD"
- run:
name: Set PYODIDE_BASE_URL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: deploy-release
on:
repository_dispatch:
workflow_dispatch:
types: [deploy-release]
jobs:
deploy-pyodide-build-pypi:
Expand Down

0 comments on commit bb9268f

Please sign in to comment.