feat: chat history #19
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- '*.*.*' | |
name: Publish shy-sh to PyPI | |
jobs: | |
build: | |
name: Release to PyPI | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.8.4 | |
- name: Set up Poetry | |
run: poetry config pypi-token.pypi ${{ secrets.PYPY_API_TOKEN }} | |
- name: Publish package | |
run: poetry publish --build | |
- name: Zip dist | |
run: zip --junk-paths dist.zip dist/* | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
release_name: Release ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dist.zip | |
asset_name: shy-sh.zip | |
asset_content_type: application/zip | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Bump version | |
run: | | |
git checkout main | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
poetry version patch | |
git add pyproject.toml | |
git commit -m "Bump version to $(poetry version -s)" | |
git push |