Compare commits

..

3 Commits

Author SHA1 Message Date
Akulij
6099a2ba81 cd.yaml: call webhook to deploy built binary
All checks were successful
Build && Deploy / cargo build (push) Successful in 53s
2025-05-04 17:27:38 +03:00
Akulij
7bd3df4d81 cd.yaml: add id for bots artifact uploading 2025-05-04 17:24:11 +03:00
Akulij
1bb3970fa6 cd.yaml: use christopherhx/gitea-upload-artifact@v4 instead of defaults
reason: this one has patch to support gitea (default detects gitea as GHES)
2025-05-04 17:22:51 +03:00
2 changed files with 1 additions and 5 deletions

View File

@ -6,8 +6,6 @@ jobs:
name: cargo build
runs-on: ubuntu-latest
steps:
- name: Install Ubuntu deps
run: apt install libssl-dev
- name: Restore cached toolchain
id: cache-toolchain
uses: actions/cache/restore@v4
@ -63,7 +61,6 @@ jobs:
name: botrunner
path: target/x86_64-unknown-linux-gnu/release/gongbotrs
- run: echo "Uploaded artifact, URL:" ${{ steps.bot-artifact.outputs.artifact-url }}
- name: Deploy with WebHook
# temporary solutino to hardcode artifact url, because upload-artifact's artifact-url gives wrong one
run: curl http://${{ secrets.SERVER_ADDR }}/hooks/gongbot-deploy?binaryzip='https://git.akulij.ru/akulij/gongbotrs/actions/runs/${{ gitea.run_number }}/artifacts/botrunner'

View File

@ -704,7 +704,6 @@ async fn user_command_handler(
);
match cmd {
UserCommands::Start(meta) => {
bot.send_message(msg.chat.id, "Test2").await?;
if !meta.is_empty() {
user.insert_meta(&mut db, &meta).await?;
}