Skip to content

Commit 2103273

Browse files
uptickmetachuclaude
andcommitted
fix: correct pypi-publish workflow to use proper steps
The pypi-publish job was incorrectly trying to use a reusable workflow as a step action. This replaces it with the proper individual steps: - Install uv - Setup AWS credentials with OIDC - Publish to S3Pypi using uvx Also fixes typo in tag condition (ref/tags -> refs/tags) and adds required id-token permission for AWS OIDC authentication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 49bdd16 commit 2103273

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/maturin.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ jobs:
7777

7878
pypi-publish:
7979
name: Publish artifacts to Uptick's Pypi repo
80-
if: startswith(github.ref, 'ref/tags/')
80+
if: startsWith(github.ref, 'refs/tags/')
8181
permissions:
82+
id-token: write
8283
contents: write
8384
needs: [linux, macos]
8485
runs-on: ubuntu-latest
@@ -87,13 +88,23 @@ jobs:
8788
with:
8889
path: dist
8990
merge-multiple: true
90-
- uses: uptick/actions/.github/workflows/ci.yaml@main # ratchet:exclude
91-
secrets: inherit
91+
92+
- name: Install uv
93+
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # ratchet:astral-sh/setup-uv@v7
94+
with:
95+
version: "0.5.0"
96+
97+
- name: Setup and Configure AWS Credentials
98+
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # ratchet:aws-actions/configure-aws-credentials@v5
9299
with:
93-
pypi-dist: dist
94-
uv: true
95-
python: true
96-
s3pypi-publish: true
100+
role-to-assume: arn:aws:iam::610829907584:role/default-github-actions-ci-role
101+
role-session-name: vrp-pypi-publish
102+
aws-region: us-east-1
103+
104+
- name: Build and Publish Package to S3Pypi
105+
shell: bash
106+
run: |
107+
uvx [email protected] upload dist/* --bucket s3pypi-610829907584-us-east-1
97108
gh-publish:
98109
name: Publish artifacts to GH
99110
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)