-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.02 KB
/
Copy pathmain.yaml
File metadata and controls
43 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: TelegramMediaRelayBot CI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
build_and_run:
runs-on: ubuntu-latest
env:
CI: true
AppSettings__TelegramBotToken: ${{ secrets.BOT_TOKEN }}
AppSettings__SqlConnectionString: "Data Source=sqlite.db"
AppSettings__DatabaseName: "TikTokMediaRelayBot"
AppSettings__DatabaseType: "SQLite"
AppSettings__UseGalleryDl: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Install yt-dlp and gallery-dl
run: |
sudo apt-get update
sudo apt-get install -y yt-dlp gallery-dl
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Run bot (2 minutes)
run: |
dotnet run --configuration Release --project TelegramMediaRelayBot.csproj