Update README.md
This commit is contained in:
1 parent
9635422253
commit
2ecd617bda
1 file changed
+22
@@ -154,6 +154,28 @@ jobs:
|
||||
hexo deploy
|
||||
```
|
||||
|
||||
### GitHub Action with FTP
|
||||
```yaml
|
||||
on: push
|
||||
name: 🚀 Deploy website on push
|
||||
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.1.0
|
||||
with:
|
||||
server: ftp.samkirkland.com
|
||||
username: myFtpUserName
|
||||
password: ${{ secrets.ftp_password }}
|
||||
port: 21
|
||||
server-dir: # Setting the server-directory
|
||||
```
|
||||
|
||||
### Testing our builds before pushing content to the `master` branch
|
||||
What if we want to test our builds in another branch before afecting `master`?
|
||||
We'll just need to set a `test` job to do this for us:
|
||||
|
||||
Reference in new issue
Block a user