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 : CD
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ paths :
9+ - pyproject.toml
10+
11+ jobs :
12+ build :
13+ name : Build
14+ runs-on : ubuntu-latest
15+
16+
17+ if : ${{ github.repository == 'UiPath/uipath-llama-python' }}
18+ permissions :
19+ contents : read
20+ actions : write
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+
26+ - name : Setup uv
27+ uses : astral-sh/setup-uv@v5
28+ with :
29+ enable-cache : true
30+
31+ - name : Setup Python
32+ uses : actions/setup-python@v5
33+ with :
34+ python-version-file : " .python-version"
35+
36+ - name : Install dependencies
37+ run : uv sync --all-extras
38+
39+ - name : Build
40+ run : uv build
41+
42+ - name : Upload artifacts
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : release-dists
46+ path : dist/
47+
48+ pypi-publish :
49+ name : Upload release to PyPI
50+ runs-on : ubuntu-latest
51+ environment : pypi
52+
53+ needs :
54+ - build
55+ permissions :
56+ contents : read
57+ id-token : write
58+
59+ steps :
60+ - name : Retrieve release distributions
61+ uses : actions/download-artifact@v4
62+ with :
63+ name : release-dists
64+ path : dist/
65+
66+ - name : Publish package distributions to PyPI
67+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments