-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor FTP upload step in deployment workflow to improve clarity an…
…d organization
- Loading branch information
1 parent
b19d95f
commit 164db8f
Showing
1 changed file
with
11 additions
and
10 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 |
---|---|---|
|
@@ -33,15 +33,16 @@ jobs: | |
cp -r client/build/* upload/ | ||
cp -r server/* upload/ | ||
- name: Upload to FTP server | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.FTP_SERVER }} | ||
username: ${{ secrets.FTP_USERNAME }} | ||
password: ${{ secrets.FTP_PASSWORD }} | ||
dangerous-clean-slate: true | ||
local-dir: ./upload/ | ||
server-dir: / | ||
- name: Start server | ||
run: cd server && nohup npm run start & | ||
|
||
- name: Upload to FTP server | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.FTP_SERVER }} | ||
username: ${{ secrets.FTP_USERNAME }} | ||
password: ${{ secrets.FTP_PASSWORD }} | ||
dangerous-clean-slate: true | ||
local-dir: ./upload/ | ||
server-dir: / |