mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
9e18514c37
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: release-please-core
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
release-please:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
release_created: ${{ steps.release.outputs['backend/core--release_created'] }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # Fetch all history for tags and releases
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Run release-please
|
|
id: release
|
|
uses: google-github-actions/release-please-action@v4
|
|
with:
|
|
path: backend/core
|
|
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
|
|
|
|
deploy:
|
|
if: needs.release-please.outputs.release_created == 'true'
|
|
needs: release-please
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: backend/
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Rye
|
|
uses: eifinger/setup-rye@v2
|
|
with:
|
|
enable-cache: true
|
|
working-directory: backend/
|
|
- name: Rye Sync
|
|
run: cd core/ && UV_INDEX_STRATEGY=unsafe-first-match rye sync --no-lock
|
|
- name: Rye Build
|
|
run: cd core/ && rye build
|
|
- name: Rye Publish
|
|
run: rye publish --token ${{ secrets.PYPI_API_TOKEN }} --yes --skip-existing |