Skip to content

Fixes #17. Добавлено экранирование символов при отправке сообщения в … #33

Fixes #17. Добавлено экранирование символов при отправке сообщения в …

Fixes #17. Добавлено экранирование символов при отправке сообщения в … #33

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn install
- name: Check types
run: yarn tsc
- name: Run tests
run: yarn test
- name: Build
run: yarn build
- name: Upload build artifacts
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: dist-${{ github.sha }}
path: dist
retention-days: 7
docker:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: erickskrauch/da-pizda-telegram-bot:latest