Commit c27a8bd 1 parent d12cb8e commit c27a8bd Copy full SHA for c27a8bd
File tree 1 file changed +17
-15
lines changed
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
deploy :
10
10
runs-on : ubuntu-latest
11
- environment : pypi
11
+ environment :
12
+ name : pypi
13
+ url : https://pypi.org/project/langchain-permit
12
14
permissions :
13
15
id-token : write # REQUIRED for trusted publishing
14
- contents : read
15
16
steps :
16
- - uses : actions/checkout@v3
17
+ - name : Checkout code
18
+ - uses : actions/checkout@v4
19
+
17
20
- name : Set up Python
18
- uses : actions/setup-python@v3
21
+ uses : actions/setup-python@v5
19
22
with :
20
23
python-version : " 3.13"
21
- - name : Request OIDC Token
22
- run : |
23
- curl -X POST \
24
- -H "Authorization: Bearer $(curl -X POST -H \"Authorization: token ${{ secrets.GITHUB_TOKEN }}\" \
25
- https://api.github.com/app/installations/YOUR_INSTALLATION_ID/access_tokens | jq -r .token)" \
26
- https://pypi.org/_/oidc/token
24
+
27
25
- name : Install Poetry
28
26
run : |
29
27
curl -sSL https://install.python-poetry.org | python3 -
30
- - name : Configure Poetry
31
- run : poetry config pypi-token.pypi ""
32
28
33
- - name : Build package
29
+ - name : Update Poetry configuration
30
+ run : poetry config virtualenvs.create false
31
+
32
+ - name : Install dependencies
33
+ run : poetry install --sync --no-interaction
34
+
35
+ - name : Package project
34
36
run : poetry build
35
37
36
- - name : Publish to PyPI
37
- run : poetry publish
38
+ - name : Publish package distributions to PyPI
39
+ uses : pypa/gh-action-pypi- publish@release/v1
You can’t perform that action at this time.
0 commit comments