Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/DO-1793-pypi-creds' into feature…
Browse files Browse the repository at this point in the history
…/python-bindings-ci
  • Loading branch information
0xOmarA committed Sep 19, 2023
2 parents e02688a + c167717 commit 72f52d8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PyPi

on:
push:
branches:
- main
- push-pypi # NOTE: Used for debugging. It should be removed before the PR is merged.

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch secrets
uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
role_name: ${{ secrets.PYPI_SECRET_ROLE_NAME }}
app_name: 'radix-engine-toolkit'
step_name: 'pypi-credentials'
secret_prefix: 'PYPI'
secret_name: ${{ secrets.PYPI_SECRET_NAME }}
parse_json: true
- name: Publish to pypi
run: |
echo "The secret should be available on the PYPI_USERNAME and PYPI_PASSWORD env variable"
# TODO: Use ${{ env.PYPI_USERNAME }} and ${{ env.PYPI_PASSWORD }} to reference the credentials

0 comments on commit 72f52d8

Please sign in to comment.