The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
chore: add release workflow (#397)
cachhoabf99ce5eadd
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex c88849606..cb97df6f0 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -1,24 +1,36 @@-name: cd+name: Publish Python π distributions π¦ to PyPI and TestPyPIon:release:- types:- - published--permissions:- id-token: write- contents: read+ types: [published] # This will trigger the workflow when you create a new releasejobs:- publish_to_pypi:- name: publish to pypi on new release+ build-n-publish:+ name: Build and publish Python π distributions π¦ to PyPI and TestPyPIruns-on: ubuntu-latest+ permissions:+ # IMPORTANT: this permission is mandatory for trusted publishing+ id-token: writesteps:- - uses: actions/checkout@v3- - uses: JRubics/[email protected]- name: Build and publish to PyPI+ - uses: actions/checkout@v2++ - name: Set up Python+ uses: actions/setup-python@v2with:- pypi_token: ${{ secrets.PYPI_TOKEN }}- ignore_dev_requirements: "yes"- repository_url: https://upload.pypi.org/legacy/- repository_name: embedchain+ python-version: 3.10++ - name: Install pep517+ run: |+ python -m pip install pep517 --user++ - name: Build a binary wheel and a source tarball+ run: python -m pep517.build .++ - name: Publish distribution π¦ to Test PyPI+ uses: pypa/gh-action-pypi-publish@release/v1+ with:+ repository_url: https://test.pypi.org/legacy/++ - name: Publish distribution π¦ to PyPI+ if: startsWith(github.ref, 'refs/tags')+ uses: pypa/gh-action-pypi-publish@release/v1