|
7 | 7 | push: |
8 | 8 | tags: |
9 | 9 | - "v*" |
| 10 | + workflow_dispatch: |
| 11 | + inputs: |
| 12 | + release_ref: |
| 13 | + description: "Existing release tag to rebuild and publish idempotently" |
| 14 | + required: true |
| 15 | + type: string |
10 | 16 |
|
11 | 17 | permissions: |
12 | 18 | contents: read |
|
16 | 22 | runs-on: ubuntu-latest |
17 | 23 | steps: |
18 | 24 | - uses: actions/checkout@v7 |
| 25 | + with: |
| 26 | + ref: ${{ inputs.release_ref || github.ref }} |
| 27 | + - uses: actions/setup-python@v7 |
| 28 | + with: |
| 29 | + python-version: "3.13" |
| 30 | + - run: python -m pip install --upgrade pip build |
| 31 | + - name: Verify required SPSS engine is publicly installable |
| 32 | + run: >- |
| 33 | + python -m pip download --only-binary=:all: --no-deps |
| 34 | + --dest /tmp/openstatspec-engine-release |
| 35 | + openstatspec-pyspssio==0.5.1.post2 |
| 36 | + - name: Build clean release distributions |
| 37 | + run: python -m build |
19 | 38 | - name: Checkout normative specification fixtures |
20 | 39 | uses: actions/checkout@v7 |
21 | 40 | with: |
|
28 | 47 | repository: TonisOrmisson/pyspssio |
29 | 48 | ref: e069adf33c70bcd9e8e6ee495106479463a84fa2 |
30 | 49 | path: openstatspec-pyspssio |
31 | | - - uses: actions/setup-python@v7 |
32 | | - with: |
33 | | - python-version: "3.13" |
34 | | - - run: python -m pip install --upgrade pip build |
35 | | - - name: Verify required SPSS engine is publicly installable |
36 | | - run: >- |
37 | | - python -m pip download --only-binary=:all: --no-deps |
38 | | - --dest /tmp/openstatspec-engine-release |
39 | | - openstatspec-pyspssio==0.5.1.post2 |
40 | 50 | - run: python -m pip install ./openstatspec-pyspssio |
41 | 51 | - run: python -m pip install -e ".[dev]" |
42 | 52 | - run: python -m pytest -m "not services" |
43 | | - - run: python -m build |
44 | 53 | - run: python -m venv /tmp/openstatspec-release-smoke |
45 | 54 | - run: /tmp/openstatspec-release-smoke/bin/python -m pip install ./openstatspec-pyspssio |
46 | 55 | - run: /tmp/openstatspec-release-smoke/bin/python -m pip install dist/*.whl |
|
64 | 73 | name: python-distributions |
65 | 74 | path: dist/ |
66 | 75 | - uses: pypa/gh-action-pypi-publish@release/v1 |
| 76 | + with: |
| 77 | + skip-existing: true |
0 commit comments