forked from coinbase/agentkit
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 911 Bytes
/
Copy pathpublish_agentkit.yml
File metadata and controls
43 lines (35 loc) · 911 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: Release AgentKit to PyPI
on:
workflow_dispatch:
jobs:
deploy-agentkit:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./cdp-agentkit-core
environment:
name: pypi
url: https://pypi.org/p/cdp-agentkit-core
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --only main
- name: Build package
run: poetry build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}