File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 publish :
5555 name : Publish to CodeArtifact
5656 needs : tests
57- if : github.event_name == 'release'
57+ # if: github.event_name == 'release'
5858 runs-on : ubuntu-latest
5959 permissions :
6060 id-token : write
@@ -69,23 +69,25 @@ jobs:
6969 with :
7070 role-to-assume : arn:aws:iam::304774597385:role/cit-oidc-role-${{ github.event.repository.name }}-ci
7171 aws-region : us-east-2
72- - name : Set up Python
73- uses : actions/setup-python@v5
74- with :
75- python-version : " 3.11"
7672 - name : Install uv
77- uses : astral-sh/setup-uv@v1
78- - name : Restore uv cache
73+ uses : astral-sh/setup-uv@v6
74+ with :
75+ version : 0.8.22
76+ enable-cache : true
77+ cache-suffix : pre-commit
78+ cache-dependency-glob : uv.lock
79+ - name : Restore venv cache
7980 uses : actions/cache@v4
8081 with :
8182 path : |
82- ~/.cache/uv
8383 ${{ env.UV_PROJECT_ENVIRONMENT }}
8484 key : ${{ runner.os }}-uv-release-${{ hashFiles('pyproject.toml') }}
85+ - name : Install keyring
86+ run : uv tool install keyring --with keyrings.codeartifact
8587 - name : Synchronize project dependencies
8688 run : uv sync --group dev
8789 - name : Build distribution artifacts
88- run : uv build
90+ run : uv build --python 3.11
8991 - name : Log in to CodeArtifact for publishing
9092 run : >-
9193 aws codeartifact login
9597 --repository cit-pypi
9698 --region us-east-2
9799 - name : Publish package to CodeArtifact
98- run : uv tool run --from twine twine upload --non-interactive --skip-existing dist/*
100+ run : uv publish --index cit-pypi
You can’t perform that action at this time.
0 commit comments