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

View File

@ -55,8 +55,12 @@ jobs:
key: ${{ steps.cache-project-dependencies.outputs.cache-primary-key }} key: ${{ steps.cache-project-dependencies.outputs.cache-primary-key }}
- name: Upload Release Binary - name: Upload Release Binary
uses: actions/upload-artifact@v3 id: bot-artifact
uses: christopherhx/gitea-upload-artifact@v4
with: with:
name: botrunner name: botrunner
path: target/x86_64-unknown-linux-gnu/release/gongbotrs path: target/x86_64-unknown-linux-gnu/release/gongbotrs
- 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'