mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-25 19:07:43 +03:00
chore: Add release-please-core workflow and configuration files (#2809)
This pull request adds the release-please-core workflow and configuration files. The release-please workflow is triggered on push to the main branch and on manual workflow dispatch. It sets up Python, installs Poetry, configures Poetry, and runs release-please for the backend/core package. The release-please configuration file specifies the release type, package name, bump patch for minor pre-major, changelog notes type, include v in tag, tag separator, and component.
This commit is contained in:
parent
1dc6d88f9b
commit
5082182ae7
45
.github/workflows/release-please-core.yml
vendored
Normal file
45
.github/workflows/release-please-core.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
name: release-please-core
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-please:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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: Install Poetry
|
||||||
|
run: |
|
||||||
|
curl -sSL https://install.python-poetry.org | python3 -
|
||||||
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
poetry --version
|
||||||
|
|
||||||
|
- name: Configure Poetry
|
||||||
|
run: |
|
||||||
|
poetry config virtualenvs.in-project true
|
||||||
|
cd backend/core
|
||||||
|
poetry install
|
||||||
|
|
||||||
|
- name: Run release-please
|
||||||
|
uses: google-github-actions/release-please-action@v3
|
||||||
|
with:
|
||||||
|
release-type: manifest
|
||||||
|
manifest-file: release-please-config.json
|
||||||
|
path: backend/core
|
||||||
|
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
13
release-please-config.json
Normal file
13
release-please-config.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"packages": {
|
||||||
|
"backend/core": {
|
||||||
|
"release-type": "python",
|
||||||
|
"package-name": "core",
|
||||||
|
"bump-patch-for-minor-pre-major": true,
|
||||||
|
"changelog-notes-type": "github",
|
||||||
|
"include-v-in-tag": false,
|
||||||
|
"tag-separator": "-",
|
||||||
|
"component": "core"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user