forked from tskit-dev/tskit
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.05 KB
/
wheels.yml
File metadata and controls
42 lines (36 loc) · 1.05 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
name: Publish Python release
on:
push:
branches: [test-publish]
release:
types: [published]
jobs:
build-wheels:
if: "!startsWith(github.ref, 'refs/tags/C_')"
uses: tskit-dev/.github/.github/workflows/build-wheels.yml@v15
with:
pyproject-directory: python
publish:
runs-on: ubuntu-24.04
environment: release
needs: [ 'build-wheels' ]
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v7.0.0
with:
pattern: build-*
path: dist
merge-multiple: true
- name: Show artifacts
run: ls -lah dist
- name: Publish distribution to Test PyPI
if: github.event_name == 'push' && github.ref_name == 'test-publish'
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
- name: Publish distribution to Production PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@v1.13.0