From 7dda0f92e242e6c0805f3661d7b2b6965bca8202 Mon Sep 17 00:00:00 2001 From: Yonatan Romero <4235177+romeroyonatan@users.noreply.github.com> Date: Mon, 1 Jun 2026 11:21:25 -0300 Subject: [PATCH] Revert "Publish on release" --- .github/workflows/build_and_release.yml | 54 ------------------------- 1 file changed, 54 deletions(-) delete mode 100644 .github/workflows/build_and_release.yml diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml deleted file mode 100644 index 7b962180..00000000 --- a/.github/workflows/build_and_release.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build and Publish Python Wheel - -permissions: - id-token: write # This is required for requesting to login in AWS - contents: write - -on: - release: - types: [published] - -jobs: - build-and-publish: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v5 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::356432868028:role/github_oidc_codeartifact - aws-region: 'us-east-1' - - - name: Deployment Token - id: deployment-token - run: | - TOKEN=$(aws codeartifact get-authorization-token \ - --domain python-domain \ - --domain-owner 356432868028 \ - --query authorizationToken \ - --output text) - - # This line prevents the token from appearing in logs - echo "::add-mask::$TOKEN" - - # Save to output for use in later steps - echo "token=$TOKEN" >> $GITHUB_OUTPUT - - - uses: astral-sh/setup-uv@v7 - - - name: Build wheel - run: uv build - - - name: Publish on code artifact - env: - UV_PUBLISH_USERNAME: aws - UV_PUBLISH_PASSWORD: ${{ steps.deployment-token.outputs.token }} - UV_PUBLISH_URL: https://python-domain-356432868028.d.codeartifact.us-east-1.amazonaws.com/pypi/shiphero/ - run: uv publish - - - name: Publish release - uses: softprops/action-gh-release@v1 - with: - files: dist/*.whl