From 20c9093f59a16ef5347431b75f0a528185518a6b Mon Sep 17 00:00:00 2001 From: Micahel Simpson Date: Tue, 24 Sep 2024 08:43:56 -0400 Subject: [PATCH] Use the API Key in 1Password --- .github/workflows/release.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ab2b955..1753a47 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,5 +82,13 @@ jobs: path: dist pattern: package-* merge-multiple: true + - name: Load PyPI Token + uses: 1password/load-secrets-action@v2 + with: + # Export loaded secrets as environment variables + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + PYPI_API_KEY: op://data-science-oss/perception-pypi-api-key/secret/value - name: Publish package run: poetry publish -n