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
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 reload |