forked from apache/cassandra-python-driver
-
Notifications
You must be signed in to change notification settings - Fork 52
34 lines (30 loc) · 961 Bytes
/
build-push.yml
File metadata and controls
34 lines (30 loc) · 961 Bytes
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
name: Build and upload to PyPi
on:
push:
branches:
- master
- 'branch-**'
workflow_dispatch:
jobs:
build-and-publish:
name: "Build wheels"
uses: ./.github/workflows/lib-build.yml
# Publishing is a separate job (not inside the reusable workflow) because PyPI Trusted Publishing
# requires the *caller* workflow path in the OIDC token. A reusable workflow would embed its own
# path instead, causing an `invalid-publisher` error on the PyPI side.
# See: https://github.com/pypa/gh-action-pypi-publish/issues/166
publish:
name: "Publish wheels to PyPi"
if: ${{ endsWith(github.event.ref, 'scylla') }}
needs: build-and-publish
runs-on: ubuntu-24.04
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true