-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.13 KB
/
Copy pathrelease-python.yaml
File metadata and controls
51 lines (43 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
---
name: ci-release-python
on:
push:
tags:
- 'v*'
permissions:
contents: read
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