Skip to content

fix: switch report sent to tomorrow at 10 #47

fix: switch report sent to tomorrow at 10

fix: switch report sent to tomorrow at 10 #47

name: Deploy api production
on:
push:
branches:
- main
paths:
- ".github/workflows/deploy-api-production.yml"
- "api/**"
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: api.api-engagement.beta.gouv.fr
username: "root"
key: ${{ secrets.SCW_SSH_KEY }}
script: |
cd api-engagement/api
git checkout main
git reset --hard
git pull
npm install
npm run build
npm run reload