fix typescritp buid issue #59
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 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 |