Skip to content

fix: test report generation #60

fix: test report generation

fix: test report generation #60

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