Skip to content

Commit 3cfac50

Browse files
Merge pull request #4 from UiPath/ci/add-ci
infra: add cd
2 parents c204a21 + 84cfb42 commit 3cfac50

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and publish
2+
3+
on:
4+
workflow_dispatch: {}
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build-and-publish:
11+
name: Build and publish
12+
runs-on: "ubuntu-24.04"
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: astral-sh/setup-uv@v5
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version-file: ".python-version"
22+
23+
- name: Setup venv
24+
run: |
25+
uv venv
26+
uv sync --all-extras
27+
28+
- name: Build
29+
run: |
30+
uv build
31+
32+
- name: Publish
33+
run: |
34+
uv publish
35+
env:
36+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
37+

0 commit comments

Comments
 (0)