Skip to content

1.1.0rc0

1.1.0rc0 #85

Workflow file for this run

name: Publish
on:
workflow_dispatch:
release:
types: [published]
jobs:
tests:
uses: ./.github/workflows/tests.yaml
secrets: inherit
build-n-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: [tests]
env:
name: pypi
url: https://pypi.org/p/chainlit
permissions:
contents: read
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: pnpm/action-setup@v2
with:
version: 8.6.9
- name: Use Node.js 16.15.0
uses: actions/setup-node@v3
with:
node-version: '16.15.0'
cache: 'pnpm'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Copy readme to backend
run: cp README.md backend/
- name: Install JS dependencies
run: pnpm install --no-frozen-lockfile
- name: Build chainlit
run: pnpm run build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: backend/dist
password: ${{ secrets.PYPI_API_TOKEN }}