Skip to content

Commit

Permalink
еуые
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-Working8888 committed Mar 9, 2024
1 parent 820ba66 commit 125f44e
Showing 1 changed file with 39 additions and 37 deletions.
76 changes: 39 additions & 37 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,42 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.17.1'
architecture: 'x64'

- name: Install npm
run: |
npm install -g npm@9.6.7
- name: Install dependencies
run: |
cd app
npm install
- name: Set CI to false
run: echo "CI=false" >> $GITHUB_ENV

- name: Build
run: |
cd app
echo "Current directory: $(pwd)"
ls -la
npm -v
node -v
npm run build --loglevel verbose
echo "Build complete"
- name: Deploy to server
run: |
sudo apt-get install -y sshpass
echo "3gd$mHt35KgZ"
sshpass -p 3gd$mHt35KgZ ssh ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }}
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.17.1'
architecture: 'x64'

- name: Install npm
run: |
npm install -g npm@9.6.7
- name: Install dependencies
run: |
cd app
npm install
- name: Set CI to false
run: echo "CI=false" >> $GITHUB_ENV

- name: Build
run: |
cd app
echo "Current directory: $(pwd)"
ls -la
npm -v
node -v
npm run build --loglevel verbose
echo "Build complete"
- name: Install sshpass
run: sudo apt-get install -y sshpass

- name: Deploy to server
run: |
/usr/bin/sshpass -p 3gd ssh ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }}
env:
SSHPASS: ${{ secrets.SERVER_PASSWORD }}

0 comments on commit 125f44e

Please sign in to comment.