-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (49 loc) · 1.82 KB
/
publish.yaml
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
49
50
51
52
53
54
55
56
name: publish
run-name: 👁️ ${{ github.actor }} has pushed a new commit!
on: [ push ]
jobs:
Pages:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Set up Python Poetry
uses: mishaga/action-poetry@1
with:
python-version: "3.12"
poetry-version: "latest"
shell: "bash"
- name: Add Poetry to path
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Config our publishing repo
run: |
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_KEY }}
# TODO (GLENN): See https://www.ianwootten.co.uk/2020/10/23/publishing-to-pypi-using-github-actions/
# TODO (GLENN): We need to add a step to make the agentc packages in pyproject.toml not relative.
# TODO (GLENN): We also need to figure out the versioning here (also to do with pyproject.toml files).
# - name: Build and publish the agentc_core package
# run: |
# cd libs/agentc_core
# poetry build
# poetry publish -r testpypi
#
# - name: Build and publish the agentc_cli package
# run: |
# cd libs/agentc_cli
# poetry build
# poetry publish -r testpypi
#
# - name: Build and publish the agentc_langchain package
# run: |
# cd libs/agentc_langchain
# poetry build
# poetry publish -r testpypi
#
# - name: Build and publish the agentc package
# run: |
# cd libs/agentc
# poetry build
# poetry publish -r testpypi