Fix uv github actions
This commit is contained in:
parent
4db4cacee4
commit
b8a56f85a5
2 changed files with 14 additions and 8 deletions
11
.github/workflows/build-publish-slim.yml
vendored
11
.github/workflows/build-publish-slim.yml
vendored
|
|
@ -8,10 +8,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up uv
|
||||
run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh
|
||||
- name: Set up Python 3.12
|
||||
run: uv python install 3.12
|
||||
- uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
enable-cache: true
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: "pyproject.toml"
|
||||
- name: Build haiku.rag-slim
|
||||
run: uv build --package haiku.rag-slim
|
||||
- name: Publish haiku.rag-slim
|
||||
|
|
|
|||
11
.github/workflows/build-publish.yml
vendored
11
.github/workflows/build-publish.yml
vendored
|
|
@ -12,10 +12,13 @@ jobs:
|
|||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up uv
|
||||
run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh
|
||||
- name: Set up Python 3.12
|
||||
run: uv python install 3.12
|
||||
- uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
enable-cache: true
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: "pyproject.toml"
|
||||
- name: Build haiku.rag
|
||||
run: uv build
|
||||
- name: Publish haiku.rag
|
||||
|
|
|
|||
Loading…
Reference in a new issue