Skip to content

Commit

Permalink
Update production.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Macavity authored Jan 18, 2024
1 parent c54e022 commit 249de53
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ jobs:
runs-on: ubuntu-latest
environment: production

strategy:
matrix:
node-version: [18.x]

steps:
- name: 🚚 Get Latest Code
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
fetch-depth: 0

## —— Node ————————————————————————————————————————————————
- name: 🛠️ Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: 🛠 Install Dependencies
run: npm install

Expand All @@ -37,7 +39,7 @@ jobs:
username: ${{ secrets.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
port: 22
source: "/*"
source: "./*"
target: ${{ secrets.DEPLOYMENT_PATH }}

clear-cache:
Expand All @@ -51,8 +53,8 @@ jobs:
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
username: ${{ secrets.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
port: 22
script: |
cd ${{ secrets.DEPLOYMENT_PATH }}
Expand Down

0 comments on commit 249de53

Please sign in to comment.