Skip to content

Commit

Permalink
Github FTP-Upload Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ramdacxp committed Jul 18, 2024
1 parent f747216 commit ff27bdb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 🚀 Deploy DCache

on:
# trigger if pushed to main
push:
branches: [ "main" ]

# manual trigger
workflow_dispatch:

jobs:
web-deploy:
name: FTP Upload
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3

# https://github.com/marketplace/actions/sftp-upload
- name: SFTP Upload
uses: Dylan700/sftp-upload-action@latest
with:
server: ${{ vars.FTP_SERVER }}
username: ${{ vars.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
uploads: |
./www/ => ./www/dcache/
# delete: 'true'

0 comments on commit ff27bdb

Please sign in to comment.