Skip to content

v3.0.2

v3.0.2 #165

Workflow file for this run

name: Deploy bot
on:
workflow_dispatch:
release:
types: [published]
jobs:
run:
name: Deploy bot
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4.1.2
with:
ref: ${{ github.head_ref }}
- name: Setup Node.JS
uses: actions/setup-node@v4.0.2
with:
node-version: 20.6.0
cache: npm
- name: Download autos data
run:
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST
}}/raw/autos-data.ts" --output modules/auto/autos-data.ts
- name: Download bad words
run:
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST
}}/raw/bad-words.ts" --output modules/automod/bad-words.ts
- name: Download dad
run:
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST }}/raw/dad.ts"
--output modules/auto/dad.ts
- name: Download strings
run:
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST
}}/raw/strings.ts" --output common/strings.ts
- name: Checkout images
run: git clone https://gist.github.com/${{ secrets.IMAGES_GIST }}.git scripts/images
- name: Install
run: npm ci --force
- name: Deploy
run:
npx railway up --detach --service afdb8def-13c6-4650-af4e-ef60d2009b56
--environment production
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
- name: Clean DB listeners
run: curl https://sa-discord.up.railway.app/prepare-exit?auth=${{ secrets.EXIT_AUTH }}