Skip to content

Commit

Permalink
feat: docs and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon4ik committed Sep 21, 2024
1 parent d6ef06d commit 288c741
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish-word.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Publish 'Word of the day'"
on:
workflow_dispatch:
schedule:
- 0 12 * * *

jobs:
publish-word:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Publish Word of the day
run: node index.js
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Слово дня
~~глупы~~ познавательный канал в телеграме

## ноте
Есть workflow, который срабатывает каждый день ровно в 12:00 и выпускает слово дня.

0 comments on commit 288c741

Please sign in to comment.