add workflow

This commit is contained in:
Ludvík Prokopec 2023-02-23 16:47:37 +01:00
parent 117d8fc45d
commit 3883f46537
1 changed files with 27 additions and 0 deletions

27
.github/workflows/main.yml vendored Normal file
View File

@ -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/