-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from idna001/feature-bundle
- Loading branch information
Showing
1 changed file
with
24 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
on: | ||
pull_request: | ||
types: [closed] | ||
push: | ||
branches: | ||
- master | ||
|
||
name: πFTP Deploy website | ||
|
||
jobs: | ||
web-deploy: | ||
name: π Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π Get latest code | ||
uses: actions/checkout@v2 | ||
web-deploy: | ||
name: π Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π Get latest code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Install lftp | ||
run: sudo apt-get install lftp | ||
|
||
- name: π¨ Build Project | ||
run: | | ||
npm install | ||
npm run build | ||
- name: π¨ Build Project | ||
run: | | ||
npm install | ||
npm run build | ||
- name: List output files | ||
run: find build/ -print | ||
- name: List output files | ||
run: find build/ -type f -exec echo {} \; | ||
|
||
- name: π Sync files | ||
uses: airvzxf/ftp-deployment-action@latest | ||
with: | ||
server: ${{ secrets.FTP_SERVER }} | ||
user: ${{ secrets.FTP_USERNAME }} | ||
password: ${{ secrets.FTP_PASSWORD }} | ||
remote_dir: ./roulette | ||
- name: π Sync files | ||
run: | | ||
lftp -c "open -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} ${{ secrets.FTP_SERVER }} && mirror -R --only-newer --exclude-glob .git* --exclude .github/ ./build/ ./roulette" |