From 3f1c4732ec0fd1bb92788025ea25f4a064856f53 Mon Sep 17 00:00:00 2001 From: Debucquoy Anthony Date: Sat, 17 Feb 2024 18:35:50 +0100 Subject: [PATCH] trying action (#25) Reviewed-on: https://git.herisson.ovh/PGL/Clyde/pulls/25 --- .gitea/workflows/deploy.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..c1962cf --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,22 @@ +name: deploy to production +run-name: ${{ gitea.actor }} has pushed to production +on: + push: + branches: + - master + workflow_dispatch: +jobs: + deploy-frontend: + runs-on: alpine + steps: + - name: Requirements + run: apk add openssh npm + - name: fetching the repo + uses: actions/checkout@v4 + - name: installing npm dependencies + run: npm install + - name: building + run: npm run build + - name: pushing to the server + run: scp -R dist/ -i key -l ${{ secrets.SSH_USER }} ${{ secrets.SSH_HOST }} + - run: echo "The website has been deployed. visit https://clyde.herisson.ovh/"