This commit is contained in:
30
.github/workflows/frontend.yml
vendored
Normal file
30
.github/workflows/frontend.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Deploy frontend
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
|
||||
jobs:
|
||||
goida:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build and deploy
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Deploy site
|
||||
uses: appleboy/ssh-action@v1.2.1
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
password: ${{ secrets.SSH_PASSWORD }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
port: 22
|
||||
script: |
|
||||
cd what_is_bot
|
||||
git pull origin master
|
||||
cd frontend
|
||||
npm i
|
||||
npm run build
|
||||
chown -R :www-data dist
|
||||
|
||||
Reference in New Issue
Block a user