Clyde/.gitea/workflows/deploy.yaml
Anthony Debucquoy 85b0be3479 frontend CI (#27)
voilà... normalement tout le ci pour le frontend est bon.. reste plus que le backend

Reviewed-on: #27
Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
Co-committed-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
2024-02-20 09:48:59 +01:00

27 lines
787 B
YAML

name: deploy to production
run-name: ${{ gitea.actor }} has pushed to production
on:
push:
branches:
- $default-branch
workflow_dispatch:
jobs:
deploy-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/node-setup
working-directory: ./frontend
- 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/"