add workflow
This commit is contained in:
parent
117d8fc45d
commit
3883f46537
|
@ -0,0 +1,27 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "deploy/prod" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "deploy/prod" ]
|
||||||
|
|
||||||
|
name: 🚀 Deploy website on push
|
||||||
|
jobs:
|
||||||
|
web-deploy:
|
||||||
|
name: 🎉 Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 🚚 Get latest code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: 🔨 Build Project
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
- name: 📂 Sync files
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@4.3.2
|
||||||
|
with:
|
||||||
|
server: 305244.w44.wedos.net
|
||||||
|
username: w305244_BOT007
|
||||||
|
password: ${{ secrets.FTP_PASSWORD }}
|
||||||
|
local-dir: ./dist/
|
Loading…
Reference in New Issue