Skip to content

chore: suppress transient error message (#42) #20

chore: suppress transient error message (#42)

chore: suppress transient error message (#42) #20

Workflow file for this run

# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
---
name: sdk-release-python
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch: # Allow manual triggering of the workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-sdk-wheel:
name: SDK Python wheel
uses: ./.github/workflows/reusable-python-build-wheel.yaml
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs:
- build-sdk-wheel
if: |
always() &&
(needs.build-sdk-wheel.result == 'skipped' || needs.build-sdk-wheel.result == 'success')
environment: pypi
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
contents: read
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: ./dist
- name: Show files
run: ls -l ./dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: ./dist