Compare commits

...

2 Commits

Author SHA1 Message Date
cedric 58fd049d03 ci: checkout correct branch before deploy
Déploiement API BETA / build (push) Successful in 2m13s
Vérification PR / build (pull_request) Successful in 2m6s
Déploiement API BETA / deploy (push) Successful in 46s
Vérification PR / deploy-beta (pull_request) Successful in 44s
2026-06-26 07:14:13 +04:00
cedric 0a0772eea3 ci: deploy beta on any branch except master 2026-06-26 07:12:55 +04:00
+4 -3
View File
@@ -2,8 +2,8 @@ name: Déploiement API BETA
run-name: ${{ gitea.actor }} déploie API BETA run-name: ${{ gitea.actor }} déploie API BETA
on: on:
push: push:
branches: branches-ignore:
- dev - master
jobs: jobs:
build: build:
@@ -39,7 +39,8 @@ jobs:
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd ${{ secrets.DEPLOY_PATH }} cd ${{ secrets.DEPLOY_PATH }}
git pull --ff-only origin dev git fetch origin
git checkout -B ${{ gitea.ref_name }} origin/${{ gitea.ref_name }}
corepack enable corepack enable
yarn install --frozen-lockfile yarn install --frozen-lockfile
NODE_ENV=production yarn build NODE_ENV=production yarn build