-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from theotime2005/change-ci
[TECH] Change CI and versioning
- Loading branch information
Showing
8 changed files
with
2,206 additions
and
265 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Merge main into production on tag push | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' # Déclenche le workflow pour les tags correspondant au schéma v*.*.* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
merge-main-into-production: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Nécessaire pour récupérer tous les tags | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "bnote-auto-merge" | ||
- name: Merge main into production | ||
run: | | ||
git checkout production | ||
git merge main --no-ff -m "Merge branch 'main' into 'production'" | ||
- name: Push changes | ||
run: | | ||
git push origin production | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.