forked from coinbase/agentkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish_pypi_coinbase_agentkit_autogen.yml
More file actions
48 lines (40 loc) · 1.23 KB
/
Copy pathpublish_pypi_coinbase_agentkit_autogen.yml
File metadata and controls
48 lines (40 loc) · 1.23 KB
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
44
45
46
47
48
name: Publish Coinbase AgentKit Autogen to PyPI
on:
workflow_dispatch:
jobs:
deploy-pypi-coinbase-agentkit-autogen:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./python/framework-extensions/autogen
environment:
name: pypi
url: https://pypi.org/p/coinbase-agentkit-autogen
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync
- name: Build package
id: build
run: |
uv build
echo "version=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)" >> $GITHUB_OUTPUT
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/framework-extensions/autogen/dist/