diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7042e79b..9b1815a9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,7 @@ jobs: id-token: write contents: read env: - REGION: "us-west-2" + CODEARTIFACT_REGION: "us-west-2" CODEARTIFACT_DOMAIN: ${{ secrets.CODEARTIFACT_DOMAIN }} CODEARTIFACT_ACCOUNT_ID: ${{ secrets.CODEARTIFACT_ACCOUNT_ID }} CODEARTIFACT_REPOSITORY: ${{ secrets.CODEARTIFACT_REPOSITORY }} diff --git a/.github/workflows/reuse_python_build.yml b/.github/workflows/reuse_python_build.yml index 092a62adf..9d8f4eee8 100644 --- a/.github/workflows/reuse_python_build.yml +++ b/.github/workflows/reuse_python_build.yml @@ -18,7 +18,7 @@ jobs: python-version: ['3.9', '3.10', '3.11'] env: PYTHON: ${{ matrix.python-version }} - REGION: "us-west-2" + CODEARTIFACT_REGION: "us-west-2" CODEARTIFACT_DOMAIN: ${{ secrets.CODEARTIFACT_DOMAIN }} CODEARTIFACT_ACCOUNT_ID: ${{ secrets.CODEARTIFACT_ACCOUNT_ID }} CODEARTIFACT_REPOSITORY: ${{ secrets.CODEARTIFACT_REPOSITORY }} diff --git a/hatch.toml b/hatch.toml index 06bc305d0..7f43849e9 100644 --- a/hatch.toml +++ b/hatch.toml @@ -42,7 +42,7 @@ lint = [ python = ["3.7", "3.9", "3.10", "3.11"] [envs.default.env-vars] -PIP_INDEX_URL="https://aws:{env:CODEARTIFACT_AUTH_TOKEN}@{env:CODEARTIFACT_DOMAIN}-{env:CODEARTIFACT_ACCOUNT_ID}.d.codeartifact.{env:REGION}.amazonaws.com/pypi/{env:CODEARTIFACT_REPOSITORY}/simple/" +PIP_INDEX_URL="https://aws:{env:CODEARTIFACT_AUTH_TOKEN}@{env:CODEARTIFACT_DOMAIN}-{env:CODEARTIFACT_ACCOUNT_ID}.d.codeartifact.{env:CODEARTIFACT_REGION}.amazonaws.com/pypi/{env:CODEARTIFACT_REPOSITORY}/simple/" [envs.codebuild.scripts] build = "hatch build"