Repository navigation
114 lines (96 loc) · 2.52 KB
/
Copy pathpython.yml
File metadata and controls
114 lines (96 loc) · 2.52 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: PyQBDI package
on:
push:
branches:
- master
- dev-next
tags:
- 'v*'
workflow_dispatch:
jobs:
build_pyqbdi_linux:
uses: ./.github/workflows/python_linux.yml
secrets: inherit
build_pyqbdi_macos:
uses: ./.github/workflows/python_macos.yml
secrets: inherit
build_pyqbdi_windows:
uses: ./.github/workflows/python_windows.yml
secrets: inherit
trigger-rtd:
runs-on: ubuntu-latest
needs: build_pyqbdi_linux
steps:
- name: trigger Read The docs build
if: github.event_name == 'push'
run: |
curl -X POST -d "branches=${BRANCH}" -d "token=${RTD_TOKEN}" https://readthedocs.org/api/v2/webhook/qbdi/145608/
env:
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
BRANCH: ${{ github.ref_name }}
all-in-one:
name: All PyQBDI whell
needs:
- build_pyqbdi_linux
- build_pyqbdi_macos
- build_pyqbdi_windows
runs-on: ubuntu-latest
steps:
- name: Download all wheel
uses: actions/download-artifact@v4
with:
pattern: PyQBDI_*
path: dist/
merge-multiple: true
- name: Export All wheels
uses: actions/upload-artifact@v4
with:
name: All_PyQBDI
path: dist/*
publish-to-testpypi:
name: Publish to TestPyPI
needs:
- build_pyqbdi_linux
- build_pyqbdi_macos
- build_pyqbdi_windows
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref_name == 'dev-next' && github.ref_type == 'branch' }}
environment:
name: test
url: https://test.pypi.org/p/PyQBDI
permissions:
id-token: write
steps:
- name: Download all wheel
uses: actions/download-artifact@v4
with:
pattern: PyQBDI_*
path: dist/
merge-multiple: true
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
publish-to-pypi:
name: Publish to PyPI
needs:
- build_pyqbdi_linux
- build_pyqbdi_macos
- build_pyqbdi_windows
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
environment:
name: release
url: https://pypi.org/p/PyQBDI
permissions:
id-token: write
steps:
- name: Download all wheel
uses: actions/download-artifact@v4
with:
pattern: PyQBDI_*
path: dist/
merge-multiple: true
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1