You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/_release.yml
+36-51Lines changed: 36 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -8,65 +8,50 @@
8
8
9
9
name: Upload Python Package
10
10
11
-
# on:
12
-
# release:
13
-
# types: [published]
14
-
15
-
on: workflow_dispatch
11
+
on:
12
+
release:
13
+
types: [published]
14
+
workflow_dispatch:
16
15
17
16
permissions:
18
17
contents: read
19
18
20
19
jobs:
21
-
release-build:
22
-
runs-on: ubuntu-latest
23
-
24
-
steps:
25
-
- uses: actions/checkout@v4
26
-
27
-
- uses: actions/setup-python@v5
28
-
with:
29
-
python-version: "3.x"
30
-
31
-
- name: Build release distributions
32
-
run: |
33
-
# NOTE: put your own distribution build steps here.
34
-
python -m pip install build
35
-
python -m build
36
-
37
-
- name: Upload distributions
38
-
uses: actions/upload-artifact@v4
39
-
with:
40
-
name: release-dists
41
-
path: dist/
42
-
43
-
pypi-publish:
20
+
build-n-publish:
21
+
name: Build and publish Python 🐍 distribution 📦 to PyPI
44
22
runs-on: ubuntu-latest
45
-
needs:
46
-
- release-build
47
-
permissions:
48
-
# IMPORTANT: this permission is mandatory for trusted publishing
49
-
id-token: write
50
-
51
-
# Dedicated environments with protections for publishing are strongly recommended.
52
-
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
53
23
environment:
54
24
name: pypi
55
-
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
56
25
url: https://pypi.org/p/langchain-oci
57
-
#
58
-
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
59
-
# ALTERNATIVE: exactly, uncomment the following line instead:
0 commit comments