Add deploy actions

This commit is contained in:
Jay Trees 2022-02-28 16:54:54 +01:00
parent 371987308d
commit a4934a144a
2 changed files with 23 additions and 1 deletions

View file

@ -19,4 +19,4 @@ jobs:
password: ${{ secrets.FTP_PASSWORD }} password: ${{ secrets.FTP_PASSWORD }}
protocol: ftp protocol: ftp
port: 21 port: 21
server-dir: ${{ secrets.FTP_DIR }} server-dir: ${{ secrets.DEV_FTP_DIR }}

22
.github/workflows/ftp-deploy-stable.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Deploy to wishthis.online
on:
push:
branches:
- 'stable'
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@4.3.0
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftp
port: 21
server-dir: ${{ secrets.FTP_DIR }}