-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 967 Bytes
/
release-langchain.yml
File metadata and controls
43 lines (38 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Langchain Release
on:
workflow_dispatch: {}
push:
tags:
- "langchain-*"
concurrency:
group: release-${{ github.workflow }}
cancel-in-progress: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "langchain/uv.lock"
- name: Build
run: |
cd langchain
uv sync --dev
uv build
- name: Publish package to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: langchain/dist
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "langchain/dist/*.whl"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false