From 70b7f43447f41f3eeaeeed49f70727cc8ad08cf8 Mon Sep 17 00:00:00 2001 From: Davor Runje Date: Wed, 4 Sep 2024 21:47:02 +0200 Subject: [PATCH] fix broken links and add PyPi release action to github workflows (#104) --- .github/workflows/release_pypi.yaml | 54 +++++++++++++++++++++++++++ docs/docs/en/getting-started/index.md | 4 +- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release_pypi.yaml diff --git a/.github/workflows/release_pypi.yaml b/.github/workflows/release_pypi.yaml new file mode 100644 index 000000000..b53e5460e --- /dev/null +++ b/.github/workflows/release_pypi.yaml @@ -0,0 +1,54 @@ +name: Publish to PyPi + +on: + workflow_dispatch: null + release: + types: + - published + +jobs: + pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + # Specifying a GitHub environment is optional, but strongly encouraged + # environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + cache-dependency-path: pyproject.toml + + - uses: actions/cache@v4 + id: cache + with: + path: ${{ env.pythonLocation }} + key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-publish + + - name: Install build dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: pip install build + + - name: Build distribution + run: python -m build + + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1 # nosemgrep + with: + skip-existing: true + + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" diff --git a/docs/docs/en/getting-started/index.md b/docs/docs/en/getting-started/index.md index a06e4abf5..ff1925864 100644 --- a/docs/docs/en/getting-started/index.md +++ b/docs/docs/en/getting-started/index.md @@ -74,8 +74,8 @@ With FastAgency, you can create interactive applications using various interface FastAgency currently supports workflows defined using AutoGen and provides options for different types of applications: -- **Console**: Use the [Console](/api/fastagency/core/io/console/ConsoleIO/) interface for command-line based interaction. This is ideal for developing and testing workflows in a text-based environment. -- **Mesop**: Utilize [Mesop](https://google.github.io/mesop/) with [MesopIO](/api/fastagency/core/io/mesop/MesopIO/) for web-based applications. This interface is suitable for creating web applications with a user-friendly interface. +- **Console**: Use the [Console](../api/fastagency/core/io/console/ConsoleIO/) interface for command-line based interaction. This is ideal for developing and testing workflows in a text-based environment. +- **Mesop**: Utilize [Mesop](https://google.github.io/mesop/) with [MesopIO](../api/fastagency/core/io/mesop/MesopIO/) for web-based applications. This interface is suitable for creating web applications with a user-friendly interface. We are also working on adding support for other frameworks, such as [CrewAI](https://www.crewai.com/), to broaden the scope and capabilities of FastAgency. Stay tuned for updates on these integrations.