trying action (#25)
Some checks failed
deploy to production / deploy-frontend (push) Failing after 14s
Some checks failed
deploy to production / deploy-frontend (push) Failing after 14s
Reviewed-on: #25
This commit is contained in:
parent
ef4929640d
commit
3f1c4732ec
22
.gitea/workflows/deploy.yaml
Normal file
22
.gitea/workflows/deploy.yaml
Normal file
@ -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/"
|
Loading…
Reference in New Issue
Block a user