fix: add node version into deploy #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Deploy CSlant ServerInvalid workflow file
|
||
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 }} |