mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2026-04-10 12:32:17 +02:00
v4 beta
This commit is contained in:
23
.github/workflows/ftp.yml
vendored
Normal file
23
.github/workflows/ftp.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: FTP Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
deploy: # make sure the action works on a clean machine without building
|
||||
name: 🚀 Deploy website every commit
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🚚 Get latest code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: 📂 Sync files
|
||||
uses: ./
|
||||
with:
|
||||
server: ftp.samkirkland.com
|
||||
username: test@samkirkland.com
|
||||
password: ${{ secrets.ftp_password }}
|
||||
|
||||
24
.github/workflows/ftps.yml
vendored
Normal file
24
.github/workflows/ftps.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: FTPS Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
deploy: # make sure the action works on a clean machine without building
|
||||
name: 🚀 Deploy website every commit
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🚚 Get latest code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: 📂 Sync files
|
||||
uses: ./
|
||||
with:
|
||||
server: wwwssr16.supercp.com
|
||||
username: test@samkirkland.com
|
||||
password: ${{ secrets.ftp_password }}
|
||||
protocol: ftps
|
||||
secure: strict
|
||||
16
.github/workflows/test-ftp-deploy.yaml
vendored
16
.github/workflows/test-ftp-deploy.yaml
vendored
@@ -1,16 +0,0 @@
|
||||
on: push
|
||||
name: Test FTP Deploy
|
||||
jobs:
|
||||
FTP-Deploy-Action:
|
||||
name: FTP-Deploy-Action
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.1.0
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: FTP-Deploy-Action
|
||||
uses: SamKirkland/FTP-Deploy-Action@master
|
||||
with:
|
||||
ftp-server: ftp://ftp.samkirkland.com/
|
||||
ftp-username: ${{ secrets.ftp_username }}
|
||||
ftp-password: ${{ secrets.ftp_password }}
|
||||
18
.github/workflows/test-sftp-deploy.yaml
vendored
18
.github/workflows/test-sftp-deploy.yaml
vendored
@@ -1,18 +0,0 @@
|
||||
on: push
|
||||
name: Test SFTP Deploy
|
||||
jobs:
|
||||
FTP-Deploy-Action:
|
||||
name: FTP-Deploy-Action
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.1.0
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: FTP-Deploy-Action
|
||||
uses: SamKirkland/FTP-Deploy-Action@master
|
||||
with:
|
||||
# deploy to a folder named "sftp-deploy-test.samkirkland.com" on my server
|
||||
ftp-server: sftp://ftp.samkirkland.com:7822/home/samkirkland/sftp-deploy-test.samkirkland.com/
|
||||
ftp-username: ${{ secrets.sftp_username }}
|
||||
ftp-password: ${{ secrets.sftp_password }}
|
||||
git-ftp-args: --insecure
|
||||
Reference in New Issue
Block a user