Clyde/.gitea/workflows/deploy.yaml
Debucquoy 62136f5060
Some checks failed
deploy to production / deploy-frontend (push) Failing after 11s
Build and test FrontEnd / Build (push) Successful in 21s
Build and test FrontEnd / Test (push) Successful in 21s
deploy fix typo
2024-02-20 11:05:26 +01:00

27 lines
781 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:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
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/"