File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Release Actions
1+ name : Release CI
22
33on :
4- workflow_dispatch :
4+ # to publish from main branch.
55 push :
66 branches : [main]
77 tags : ['**']
8+ # to verify distributions before merging a PR
89 pull_request :
910 branches : [main]
11+ # to manually trigger dry-runs on non-default branches
12+ workflow_dispatch :
1013
1114env :
1215 ARTIFACT_NAME_PREFIX : ' pyRF24_wheels'
1316
17+ run-name : >-
18+ Release
19+ ${{ github.ref_name }}
20+ ${{ github.ref_name != 'main' && '(dry-run)' }}
21+
1422jobs :
1523 # sdist for non-supported platforms will serve as a stub lib install
1624 sdist :
@@ -53,20 +61,16 @@ jobs:
5361 # non-shallow checkout needed for setuptools_scm
5462 fetch-depth : 0
5563
56- - name : Set up Python
57- uses : actions/setup-python@v5
58- with :
59- python-version : 3.x
60-
6164 - name : Build wheels with cibuildwheels
6265 uses : pypa/cibuildwheel@v2.23.3
6366 with :
6467 output-dir : dist
68+ # see options at https://cibuildwheel.pypa.io/en/stable/options/
6569 env :
6670 CIBW_ARCHS_LINUX : ${{ matrix.platform }}
67- CIBW_SKIP : pp* *ppc64le *s390x
6871 CIBW_BUILD_VERBOSITY : 1
6972 CIBW_BUILD : ' ${{ matrix.python }}*${{ matrix.tag }}*'
73+ CIBW_SKIP : pp* *ppc64le *s390x
7074
7175 - name : Save distributable wheels as artifacts
7276 uses : actions/upload-artifact@v4
7882 name : >-
7983 Deploy to
8084 ${{ startsWith(github.ref, 'refs/tags/') && 'pypi' || 'test-pypi' }}
81- ${{ startsWith( github.ref, 'refs/heads/') && github. ref_name != 'main' && '(dry run)' || ' ' }}
85+ ${{ github.ref_name != 'main' && '(dry run)' }}
8286 needs : [sdist, linux]
8387 permissions :
8488 # needed permission for PyPI "trusted publishing"
You can’t perform that action at this time.
0 commit comments