fix: component name error #13
Workflow file for this run
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: GitHub Action | |
on: | |
push: | |
branches: | |
- feat-CICD | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.9.0" | |
- name: Install dependencies | |
run: npm install | |
- name: Run build task | |
run: npm run build | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to Server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.REMOTE_HOST }} | |
username: ${{ secrets.REMOTE_USER }} | |
password: ${{ secrets.REMOTE_PW }} | |
port: ${{ secrets.REMOTE_PORT }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
script: | | |
cd ${{ secrets.REMOTE_TARGET }} | |
git pull origin ${{ github.ref }} | |
npm ci | |
npm run build | |
node createFolders.js && node dist/index.js |