-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dade734
commit 3130376
Showing
1 changed file
with
17 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 |
---|---|---|
|
@@ -46,21 +46,28 @@ jobs: | |
with: | ||
name: production-files | ||
path: distfiles | ||
|
||
- name: Understanding where I am | ||
run: | | ||
pwd | ||
echo "Working directory:" | ||
ls -la | ||
echo "Temporary directory:" | ||
ls -la /tmp | ||
|
||
- name: Deploy to server | ||
- name: Copy to server | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
password: ${{ secrets.PASSWORD }} | ||
port: ${{ secrets.PORT }} | ||
source: distfiles/* | ||
target: "/home/${{ secrets.USERNAME }}/temporary-directory" | ||
target: "${{ secrets.TEMP_DIR }}" | ||
|
||
- name: Going Live | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
password: ${{ secrets.PASSWORD }} | ||
port: ${{ secrets.PORT }} | ||
script: | | ||
cd ${{ secrets.TEMP_DIR }} | ||
unzip production-files.zip | ||
rm production-files.zip | ||
rm -rf ${{ secrets.DEPLOY_DIR }}/* | ||
mv distfiles/* ${{ secrets.DEPLOY_DIR }} | ||
rm -rf ${{ secrets.TEMP_DIR }} |
3130376
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nyaraka – ./
nyaraka.vercel.app
nyaraka-nuruprogramming.vercel.app
nyaraka-git-main-nuruprogramming.vercel.app