Skip to content

fix: add node version into deploy #21

fix: add node version into deploy

fix: add node version into deploy #21

Workflow file for this run

name: Deploy CSlant Server
on:
push:
branches:
- main
env:
NODE_VERSION: ${{ variables.GLOBAL_NVM_USE_VERSION }}

Check failure on line 9 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy CSlant Server

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 9, Col: 17): Unrecognized named-value: 'variables'. Located at position 1 within expression: variables.GLOBAL_NVM_USE_VERSION
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Deploy to Remote Host
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
password: ${{ secrets.REMOTE_PASS }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.REMOTE_PORT }}
script: |
source "$HOME/.nvm/nvm.sh"
nvm use $NODE_VERSION
cd ${{ secrets.DOCS_RUNNER_PATH }}
${{ secrets.DOCS_RUNNER_COMMAND }}