feat: rendre le dépôt configurable via variables d'env #2
@@ -2,8 +2,8 @@ name: Déploiement API BETA
|
||||
run-name: ${{ gitea.actor }} déploie API BETA
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
branches-ignore:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
cd ${{ secrets.DEPLOY_PATH }}
|
||||
git pull --ff-only origin dev
|
||||
git pull --ff-only origin ${{ gitea.ref_name }}
|
||||
corepack enable
|
||||
yarn install --frozen-lockfile
|
||||
NODE_ENV=production yarn build
|
||||
|
||||
Reference in New Issue
Block a user