Skip to content

Commit

Permalink
Add publishing to crates.io (#3)
Browse files Browse the repository at this point in the history
* Move brain_location to an env variable

* Add publishing to crates.io
  • Loading branch information
foursixnine authored Dec 30, 2024
1 parent 0d4b058 commit 9fca166
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
run: echo "X_TOKEN=${{ secrets.X_TOKEN }}" >> $GITHUB_ENV
- name: Display structure of downloaded files
run: ls -lahR && pwd
- name: Login into crates.io
run: cargo login {{ secrets.CRATES_IO }}
- name: "Publish to crates.io"
run: cargo publish
- name: Download hello app
uses: actions/download-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions run_telegram_bot
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash -e
set LOGLEVEL=${LOGLEVEL:="info"}
set TARGET=${TARGET:="-r"}
set BRAIN_LOCATION=${BRAIN_LOCATION:="cndk8-links.md"}
source telegram/.env || (echo "can't rum bot, token not found" && exit 2)
RUST_LOG=$LOGLEVEL cargo run ${TARGET} -p telegram |& tee log/tgrun-$(date +%s).log

0 comments on commit 9fca166

Please sign in to comment.