|
1 | | -name: Release (GitHub/PyPI) and Deploy Docs |
| 1 | +name: Build Wheel and Release |
2 | 2 |
|
| 3 | +# Trigger on tag push or manual dispatch. |
| 4 | +# Tag and release privilege are verified inside the reusable workflow. |
3 | 5 | on: |
4 | 6 | workflow_dispatch: |
5 | 7 | push: |
6 | 8 | tags: |
7 | | - - "*" # Trigger on all tags initially, but tag and release privilege are verified in _build-wheel-release-upload.yml |
| 9 | + - "*" |
| 10 | + |
| 11 | +# ── Release modality ────────────────────────────────────────────────────────── |
| 12 | +# Three options are provided below. Only ONE job should be active at a time. |
| 13 | +# To switch: comment out the active job and uncomment your preferred option, |
| 14 | +# then commit the change to main before tagging a release. |
| 15 | +# ───────────────────────────────────────────────────────────────────────────── |
8 | 16 |
|
9 | 17 | jobs: |
| 18 | + # Option 1 (default): Release to GitHub, publish to PyPI, and deploy docs. |
| 19 | + # |
| 20 | + # The wheel is uploaded to PyPI so users can install with `pip install`. |
| 21 | + # A GitHub release is created with the changelog as the release body, and |
| 22 | + # the Sphinx documentation is rebuilt and deployed to GitHub Pages. |
| 23 | + # |
| 24 | + # Choose this for open-source packages distributed via PyPI and/or |
| 25 | + # conda-forge where broad public availability is the goal. |
10 | 26 | build-release: |
11 | 27 | uses: scikit-package/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0 |
12 | 28 | with: |
13 | 29 | project: diffpy.pdffit2 |
14 | 30 | c_extension: true |
15 | | - maintainer_GITHUB_username: sbillinge |
| 31 | + maintainer_github_username: sbillinge |
16 | 32 | secrets: |
17 | 33 | PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
18 | 34 | PAT_TOKEN: ${{ secrets.PAT_TOKEN }} |
| 35 | + |
| 36 | + # Option 2: Release to GitHub and deploy docs, without publishing to PyPI. |
| 37 | + # |
| 38 | + # A GitHub release is created and the Sphinx docs are deployed, but the |
| 39 | + # wheel is not uploaded to PyPI. The source code remains publicly visible |
| 40 | + # on GitHub and can be installed directly from there. |
| 41 | + # |
| 42 | + # Choose this when the package is public but you prefer to keep it off the |
| 43 | + # default pip index — for example, if you distribute via conda-forge only, |
| 44 | + # or if the package is not yet ready for a permanent PyPI presence. |
| 45 | + # |
| 46 | + # To use: comment out Option 1 above and uncomment the lines below. |
| 47 | + # build-release-no-pypi: |
| 48 | + # uses: scikit-package/release-scripts/.github/workflows/_build-release-github-no-pypi.yml@v0 |
| 49 | + # with: |
| 50 | + # project: diffpy.pdffit2 |
| 51 | + # c_extension: true |
| 52 | + # maintainer_github_username: sbillinge |
| 53 | + # secrets: |
| 54 | + # PAT_TOKEN: ${{ secrets.PAT_TOKEN }} |
| 55 | + |
| 56 | + # Option 3: Release to GitHub with wheel, license, and instructions bundled |
| 57 | + # as a downloadable zip attached to the GitHub release asset. |
| 58 | + # |
| 59 | + # The wheel is built and packaged together with INSTRUCTIONS.txt and the |
| 60 | + # LICENSE file into a zip that is attached directly to the GitHub release. |
| 61 | + # Users with access to the (private) repo download the zip, follow the |
| 62 | + # instructions inside, and install locally with pip. No PyPI or conda-forge |
| 63 | + # upload occurs, and no docs are deployed. |
| 64 | + # |
| 65 | + # Choose this for private or restricted packages where distribution must be |
| 66 | + # controlled: only users with repo access can download the release asset, |
| 67 | + # making the GitHub release itself the distribution channel. |
| 68 | + # |
| 69 | + # To use: comment out Option 1 above and uncomment the lines below. |
| 70 | + # build-release-private: |
| 71 | + # uses: scikit-package/release-scripts/.github/workflows/_build-release-github-private-pure.yml@v0 |
| 72 | + # with: |
| 73 | + # project: diffpy.pdffit2 |
| 74 | + # maintainer_github_username: sbillinge |
| 75 | + # secrets: |
| 76 | + # PAT_TOKEN: ${{ secrets.PAT_TOKEN }} |
0 commit comments