fix: Fix searching youtube links #146
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: Node.js CI | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7.6.0 | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
- run: pnpm install | |
- name: Lint code | |
run: pnpm lint | |
- name: Format code | |
run: pnpm format | |
- name: Run tests | |
run: pnpm test | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH and deploy node app | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
cd ${{ secrets.SSH_BUILD_PATH }} | |
git fetch --all | |
git reset --hard origin/master | |
cd ../.. | |
docker-compose up -d --build discord-music-bot |