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:
Stan Girard 2024-07-09 15:35:23 +02:00 committed by GitHub
parent 1dc6d88f9b
commit 5082182ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 58 additions and 0 deletions

View 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 }}

View 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"
}
}
}