Skip to content

chore(main): release 0.5.0 (#19) #4

chore(main): release 0.5.0 (#19)

chore(main): release 0.5.0 (#19) #4

Workflow file for this run

# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
---
name: ci-release-python
on:
push:
tags:
- 'v*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-wheels:
name: Build slima2a
uses: ./.github/workflows/reusable-python-build-and-test.yaml
with:
package: slima2a
working-directory: .
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs:
- build-wheels
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