Skip to content

Merge branch 'main' into staging #2

Merge branch 'main' into staging

Merge branch 'main' into staging #2

name: Deploy widget volontariat staging
on:
push:
branches:
- staging
paths:
- ".github/workflows/deploy-widget-volontariat-staging.yml"
- "widget-volontariat/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment: staging
steps:
- name: Connect and restart process
uses: appleboy/ssh-action@master
with:
host: sc.api-engagement-dev.fr
username: "root"
key: ${{ secrets.SSH_KEY_STAGING }}
script: |
cd api-engagement/widget-volontariat
git checkout staging
git reset --hard
git pull
npm install
npm run build
npm run stop
npm run start