Clyde/.gitea/workflows/deploy.yaml
Debucquoy Anthony a795108859
All checks were successful
deploy to production / deploy-frontend (push) Successful in 47s
frontend + ci
2024-02-17 20:58:42 +01:00

27 lines
843 B
YAML

name: deploy to production
run-name: ${{ gitea.actor }} has pushed to production
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy-frontend:
runs-on: ubuntu-latest
steps:
- name: fetching the repo
uses: actions/checkout@v4
- name: installing npm dependencies
working-directory: ./frontend
run: npm install
- name: building
working-directory: ./frontend
run: npm run build
- name: pushing to the server
working-directory: ./frontend
run: |
echo "${{ secrets.SSH_KEY }}" > key
chmod 0600 key
scp -o "StrictHostKeyChecking=no" -o "LogLevel=ERROR" -i key -r dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:
- run: echo "The website has been deployed. visit https://clyde.herisson.ovh/"