🔄 synced file(s) with RakambdaOrg/rakambda-github-files (#35) #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deployment | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 10 | |
- name: Set up Git-FTP | |
run: | | |
curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > git-ftp && | |
sudo mv git-ftp /bin && | |
sudo chmod 755 /bin/git-ftp | |
- name: Deploy on FTP | |
run: | | |
git ftp push -v --remote-root /www/subdomains/yttracker --syncroot app/ --user ${FTP_USER} --passwd ${FTP_PASSWORD} ${FTP_HOST} | |
env: | |
FTP_USER: ${{ secrets.FTP_USER }} | |
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} | |
FTP_HOST: ${{ secrets.FTP_HOST }} |