-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/DO-1793-pypi-creds' into feature…
…/python-bindings-ci
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
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 |