Skip to content

Commit

Permalink
finally
Browse files Browse the repository at this point in the history
  • Loading branch information
AvicennaJr committed Oct 16, 2023
1 parent dade734 commit 3130376
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/scp-action@v0.1.4
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/ssh-action@v1.0.0
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 }}

1 comment on commit 3130376

@vercel
Copy link

@vercel vercel bot commented on 3130376 Oct 16, 2023

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

Please sign in to comment.