Skip to content

improve auth, improve queries #64

improve auth, improve queries

improve auth, improve queries #64

Workflow file for this run

name: Deployment Workflow
# Trigger this workflow on pushes to the specified branch
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install
- name: Build Next.js app
run: yarn build
- name: SSH Deploy
# Use the 'appleboy/ssh-action' action for SSH deployment
uses: appleboy/ssh-action@master
with:
host: ${{ auths.HOST }} # server's IP address

Check failure on line 27 in .github/workflows/nextjs.yml

View workflow run for this annotation

GitHub Actions / Deployment Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/nextjs.yml (Line: 27, Col: 17): Unrecognized named-value: 'auths'. Located at position 1 within expression: auths.HOST .github/workflows/nextjs.yml (Line: 28, Col: 21): Unrecognized named-value: 'auths'. Located at position 1 within expression: auths.USERNAME
username: ${{ auths.USERNAME }} # server's username
key: ${{ auths.SSH_PRIVATE_KEY }} # server's SSH private key
passphrase: ${{ auths.SSH_PASSWORD }} # server's SSH key password
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd /home/debian/hikka-next
git pull
yarn install
yarn build
pm2 reload hikka-next