Skip to content

👷ci: prune cache force #61

👷ci: prune cache force

👷ci: prune cache force #61

Workflow file for this run

name: Deploy RGD-BOT
on:
push:
branches:
- main
jobs:
lint:
env:
NODE_VERSION: 18.x
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8.3.0
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: install and lint
run: |
pnpm install --no-frozen-lockfile
pnpm run lint
pnpm run ts-check
tsc
pnpm sentry:sourcemaps
deploy:
needs: [lint]
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 }}
port: ${{ secrets.SSH_PORT }}
script: |
cd ~/rgd-bot
chmod +x ./scripts/deploy.sh
./scripts/deploy.sh