-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 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 |
---|---|---|
|
@@ -15,19 +15,21 @@ concurrency: | |
cancel-in-progress: false | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# Incrementer la version | ||
# Incrémenter la version | ||
- name: Increment version | ||
id: increment_version | ||
run: | | ||
CURRENT_VERSION=$(jq -r '.version' version.json) | ||
IFS='.' read -r major minor patch <<< "$CURRENT_VERSION" | ||
# Récupérer le type d'incrémentation depuis le message de commit | ||
echo "Commit message: ${{ github.event.head_commit.message }}" | ||
if [[ "${{ github.event.head_commit.message }}" == *"[major]"* ]]; then | ||
major=$((major + 1)) | ||
|
@@ -53,13 +55,10 @@ jobs: | |
git config --local user.name "boutzi" | ||
git config --local user.email "[email protected]" | ||
# Stasher les changements | ||
- name: Stash changes | ||
run: git stash | ||
|
||
# Tirer les dernières modifications | ||
# Pull pour s'assurer d'avoir la dernière version | ||
- name: Pull latest changes | ||
run: git pull --rebase origin main | ||
run: | | ||
git pull --rebase origin main | ||
# Commit version change | ||
- name: Commit version change | ||
|
@@ -121,6 +120,7 @@ jobs: | |
with: | ||
path: ./out | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"version": "1.3.30"} | ||
{ "version": "1.3.29" } |