File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,25 +2,18 @@ name: Deployment
22
33on :
44 push :
5- branches :
6- - master
5+ workflow_dispatch :
76
87jobs :
98 deployment :
10- runs-on : ubuntu-latest
11- steps :
12- - uses : actions/checkout@v5
13- with :
14- fetch-depth : 10
15- - name : Set up Git-FTP
16- run : |
17- curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > git-ftp &&
18- sudo mv git-ftp /bin &&
19- sudo chmod 755 /bin/git-ftp
20- - name : Deploy on FTP
21- run : |
22- git ftp push -v --remote-root /www/subdomains/yttracker --syncroot app/ --user ${FTP_USER} --passwd ${FTP_PASSWORD} ${FTP_HOST}
23- env :
24- FTP_USER : ${{ secrets.FTP_USER }}
25- FTP_PASSWORD : ${{ secrets.FTP_PASSWORD }}
26- FTP_HOST : ${{ secrets.FTP_HOST }}
9+ name : " Deploy YTTrackerWeb"
10+ uses : RakambdaOrg/rakambda-github-workflows/.github/workflows/sync-ftp.yml@main
11+ if : ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
12+ with :
13+ remote-path : " /www/subdomains/yttracker"
14+ repository-path : " app/"
15+ environment : FtpPersonalWebsite
16+ secrets :
17+ ftp-host : ${{ secrets.FTP_HOST }}
18+ ftp-user : ${{ secrets.FTP_USER }}
19+ ftp-password : ${{ secrets.FTP_PASSWORD }}
You can’t perform that action at this time.
0 commit comments