File tree Expand file tree Collapse file tree 6 files changed +63
-150
lines changed
Expand file tree Collapse file tree 6 files changed +63
-150
lines changed Original file line number Diff line number Diff line change 1+ name : CD Pipeline
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ test_publish_package :
8+ name : Publish package to Test PyPI
9+ runs-on : ubuntu-latest
10+ permissions :
11+ id-token : write # IMPORTANT: mandatory for trusted publishing
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v3
18+ with :
19+ python-version : 3.11
20+
21+ - name : Install uv
22+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
23+
24+ - name : Build package
25+ run : uv build
26+
27+ - name : Publish package
28+ uses : pypa/gh-action-pypi-publish@release/v1
29+ with :
30+ user : __token__
31+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
32+ repository-url : https://test.pypi.org/legacy/
33+
34+ publish :
35+ name : Publish package to PyPI
36+ runs-on : ubuntu-latest
37+ permissions :
38+ id-token : write # IMPORTANT: mandatory for trusted publishing
39+ steps :
40+ - name : Checkout code
41+ uses : actions/checkout@v4
42+
43+ - name : Set up Python
44+ uses : actions/setup-python@v3
45+ with :
46+ python-version : 3.11
47+
48+ - name : Install uv
49+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
50+
51+ # - name: Add uv to PATH
52+ # run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
53+
54+ - name : Build package
55+ run : uv build
56+
57+ - name : Publish package
58+ uses : pypa/gh-action-pypi-publish@release/v1
59+ with :
60+ user : __token__
61+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1- name : Unit Tests For Development
1+ name : CI Pipeline
22
33on :
44 workflow_dispatch :
@@ -121,27 +121,3 @@ jobs:
121121 - name : Skip note (no Ubuntu 3.13 artifact found)
122122 if : steps.dl.outcome != 'success'
123123 run : echo "No Ubuntu 3.13 coverage artifact present; skipping Codecov upload."
124-
125- publish_package :
126- name : Publish package to Test PyPI
127- runs-on : ubuntu-latest
128- needs : test
129- if : github.event_name == 'workflow_dispatch'
130- permissions :
131- id-token : write # IMPORTANT: mandatory for trusted publishing
132- steps :
133- - uses : actions/checkout@v4
134- - name : Set up Python
135- uses : actions/setup-python@v3
136- with :
137- python-version : 3.11
138- - name : Install uv
139- run : curl -LsSf https://astral.sh/uv/install.sh | sh
140- - name : Build package
141- run : uv build
142- - name : Publish package
143- uses : pypa/gh-action-pypi-publish@release/v1
144- with :
145- user : __token__
146- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
147- repository-url : https://test.pypi.org/legacy/
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments