Skip to content

Merge pull request #7 from Support-Informatique/main #17

Merge pull request #7 from Support-Informatique/main

Merge pull request #7 from Support-Informatique/main #17

Workflow file for this run

name: Deploy to Production
on:
push:
branches:
- prod
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: "[⚙️] Checkout"
uses: actions/checkout@v3
- name: "[📦] Install dependencies"
run: npm install
- name: "[🔧] Build"
run: npm run build
- name: "[🚀] Deploy to server"
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SUPPORT_INFORMATIQUE_DEPLOYMENT_HOST }}
username: ${{ secrets.SUPPORT_INFORMATIQUE_DEPLOYMENT_USER }}
key: ${{ secrets.SUPPORT_INFORMATIQUE_DEPLOYMENT_SSH_PRIVATE_KEY }}
source: "dist/*"
target: ${{ vars.SUPPORT_INFORMATIQUE_DEPLOYMENT_FOLDER }}
strip_components: 1