|
1 | | -name: CD - Publish to TestPyPI |
2 | | - |
3 | | -on: |
4 | | - workflow_run: |
5 | | - workflows: ["CI - Run Tox Tests"] |
6 | | - types: |
7 | | - - completed |
8 | | - |
9 | | -jobs: |
10 | | - build: |
11 | | - name: Build distribution |
12 | | - runs-on: ubuntu-latest |
13 | | - |
14 | | - if: ${{ github.event.workflow_run.conclusion == 'success' }} |
15 | | - |
16 | | - strategy: |
17 | | - matrix: |
18 | | - python-version: ["3.10", "3.11", "3.12"] |
19 | | - |
20 | | - steps: |
21 | | - - uses: actions/checkout@v4 |
22 | | - - name: Set up Python |
23 | | - uses: actions/setup-python@v5 |
24 | | - with: |
25 | | - python-version: ${{ matrix.python-version }} |
26 | | - - name: Install pypa/build |
27 | | - run: python3 -m pip install build --user |
28 | | - - name: Build a binary wheel and a source tarball |
29 | | - run: python3 -m build |
30 | | - - name: Upload the distribution packages |
31 | | - uses: actions/upload-artifact@v4 |
32 | | - with: |
33 | | - name: dist-${{ matrix.python-version }} |
34 | | - path: dist |
35 | | - |
36 | | - publish-to-testpypi: |
37 | | - name: Publish Python distribution to TestPyPI |
38 | | - needs: build |
39 | | - runs-on: ubuntu-latest |
40 | | - |
41 | | - environment: |
42 | | - name: testpypi |
43 | | - url: https://test.pypi.org/p/fakernaija |
44 | | - |
45 | | - permissions: |
46 | | - id-token: write # Required for OIDC authentication |
47 | | - |
48 | | - steps: |
49 | | - - name: Download the distribution packages |
50 | | - uses: actions/download-artifact@v4 |
51 | | - with: |
52 | | - pattern: dist-* |
53 | | - merge-multiple: true |
54 | | - path: dist |
55 | | - - name: Publish distribution to TestPyPI |
56 | | - uses: pypa/gh-action-pypi-publish@release/v1 |
57 | | - with: |
58 | | - repository-url: https://test.pypi.org/legacy/ |
| 1 | +# name: CD - Publish to TestPyPI |
| 2 | + |
| 3 | +# on: |
| 4 | +# workflow_run: |
| 5 | +# workflows: ["CI - Run Tox Tests"] |
| 6 | +# types: |
| 7 | +# - completed |
| 8 | + |
| 9 | +# jobs: |
| 10 | +# build: |
| 11 | +# name: Build distribution |
| 12 | +# runs-on: ubuntu-latest |
| 13 | + |
| 14 | +# if: ${{ github.event.workflow_run.conclusion == 'success' }} |
| 15 | + |
| 16 | +# strategy: |
| 17 | +# matrix: |
| 18 | +# python-version: ["3.10", "3.11", "3.12"] |
| 19 | + |
| 20 | +# steps: |
| 21 | +# - uses: actions/checkout@v4 |
| 22 | +# - name: Set up Python |
| 23 | +# uses: actions/setup-python@v5 |
| 24 | +# with: |
| 25 | +# python-version: ${{ matrix.python-version }} |
| 26 | +# - name: Install pypa/build |
| 27 | +# run: python3 -m pip install build --user |
| 28 | +# - name: Build a binary wheel and a source tarball |
| 29 | +# run: python3 -m build |
| 30 | +# - name: Upload the distribution packages |
| 31 | +# uses: actions/upload-artifact@v4 |
| 32 | +# with: |
| 33 | +# name: dist-${{ matrix.python-version }} |
| 34 | +# path: dist |
| 35 | + |
| 36 | +# publish-to-testpypi: |
| 37 | +# name: Publish Python distribution to TestPyPI |
| 38 | +# needs: build |
| 39 | +# runs-on: ubuntu-latest |
| 40 | + |
| 41 | +# environment: |
| 42 | +# name: testpypi |
| 43 | +# url: https://test.pypi.org/p/fakernaija |
| 44 | + |
| 45 | +# permissions: |
| 46 | +# id-token: write # Required for OIDC authentication |
| 47 | + |
| 48 | +# steps: |
| 49 | +# - name: Download the distribution packages |
| 50 | +# uses: actions/download-artifact@v4 |
| 51 | +# with: |
| 52 | +# pattern: dist-* |
| 53 | +# merge-multiple: true |
| 54 | +# path: dist |
| 55 | +# - name: Publish distribution to TestPyPI |
| 56 | +# uses: pypa/gh-action-pypi-publish@release/v1 |
| 57 | +# with: |
| 58 | +# repository-url: https://test.pypi.org/legacy/ |
0 commit comments