This repository has been archived by the owner on May 15, 2024. It is now read-only.
niostack is deploying to server 🚀 #77
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: auto deploy | |
run-name: ${{ github.actor }} is deploying to server 🚀 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 21.5.0 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build:dev | |
- name: 📂 upload to server | |
uses: appleboy/scp-action@v0.1.4 | |
with: | |
host: 154.197.99.171 | |
username: root | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
port: 31275 | |
source: dist/* | |
target: /root/tt.niostack.com |