1
0
forked from PGL/Clyde
Clyde/.gitea/workflows/deploy.yaml

27 lines
778 B
YAML
Raw Normal View History

name: deploy to production
run-name: ${{ gitea.actor }} has pushed to production
on:
push:
branches:
2024-02-20 10:55:27 +01:00
- master
workflow_dispatch:
jobs:
deploy-frontend:
2024-02-17 20:48:14 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/node-setup
2024-02-17 20:48:14 +01:00
working-directory: ./frontend
- name: building
2024-02-17 20:48:14 +01:00
working-directory: ./frontend
run: npm run build
- name: pushing to the server
2024-02-17 20:48:14 +01:00
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/"